<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: editor   editor.js  (YUI Library)</title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
        <h3>editor&nbsp; <span class="subtitle">2.9.0</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_editor.html" title="editor">editor</a>
                
                 &gt; editor.js (source view) 
        <form onsubmit="return false">
            <div id="propertysearch">
                Search: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <div id="srcout">
                        <style>
                            #doc3 .classopts { display:none; }
                        </style>
                        <div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * @module editor</span>
<span class="cm"> * @description &lt;p&gt;The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor&#39;s toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.&lt;/p&gt;</span>
<span class="cm"> * @namespace YAHOO.widget</span>
<span class="cm"> * @requires yahoo, dom, element, event, container_core, simpleeditor</span>
<span class="cm"> * @optional dragdrop, animation, menu, button, resize</span>
<span class="cm"> */</span>

<span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">Dom</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">,</span>
    <span class="nx">Event</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">,</span>
    <span class="nx">Lang</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">,</span>
    <span class="nx">Toolbar</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Toolbar</span><span class="p">;</span>

    <span class="cm">/**</span>
<span class="cm">     * The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor&#39;s toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.</span>
<span class="cm">     * @constructor</span>
<span class="cm">     * @class Editor</span>
<span class="cm">     * @extends YAHOO.widget.SimpleEditor</span>
<span class="cm">     * @param {String/HTMLElement} el The textarea element to turn into an editor.</span>
<span class="cm">     * @param {Object} attrs Object liternal containing configuration parameters.</span>
<span class="cm">    */</span>
    
    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Editor</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">el</span><span class="p">,</span> <span class="nx">attrs</span><span class="p">)</span> <span class="p">{</span>
        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Editor Initalizing&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Editor</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">constructor</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">el</span><span class="p">,</span> <span class="nx">attrs</span><span class="p">);</span>
    <span class="p">};</span>

    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Editor</span><span class="p">,</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">SimpleEditor</span><span class="p">,</span> <span class="p">{</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _undoCache</span>
<span class="cm">        * @description An Array hash of the Undo Levels.</span>
<span class="cm">        * @type Array</span>
<span class="cm">        */</span>
        <span class="nx">_undoCache</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _undoLevel</span>
<span class="cm">        * @description The index of the current undo state.</span>
<span class="cm">        * @type Number</span>
<span class="cm">        */</span>
        <span class="nx">_undoLevel</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>    
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _hasUndoLevel</span>
<span class="cm">        * @description Checks to see if we have an undo level available</span>
<span class="cm">        * @return Boolean</span>
<span class="cm">        */</span>
        <span class="nx">_hasUndoLevel</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="p">((</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">.</span><span class="nx">length</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _undoNodeChange</span>
<span class="cm">        * @description nodeChange listener for undo processing</span>
<span class="cm">        */</span>
        <span class="nx">_undoNodeChange</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">undo_button</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">getButtonByValue</span><span class="p">(</span><span class="s1">&#39;undo&#39;</span><span class="p">),</span>
                <span class="nx">redo_button</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">getButtonByValue</span><span class="p">(</span><span class="s1">&#39;redo&#39;</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">undo_button</span> <span class="o">&amp;&amp;</span> <span class="nx">redo_button</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_hasUndoLevel</span><span class="p">())</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">enableButton</span><span class="p">(</span><span class="nx">undo_button</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">&lt;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">.</span><span class="nx">length</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">enableButton</span><span class="p">(</span><span class="nx">redo_button</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_lastCommand</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _checkUndo</span>
<span class="cm">        * @description Prunes the undo cache when it reaches the maxUndo config</span>
<span class="cm">        */</span>
        <span class="nx">_checkUndo</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">len</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">.</span><span class="nx">length</span><span class="p">,</span>
            <span class="nx">tmp</span> <span class="o">=</span> <span class="p">[];</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">len</span> <span class="o">&gt;=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxUndo&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="c1">//YAHOO.log(&#39;Undo cache too large (&#39; + len + &#39;), pruning..&#39;, &#39;info&#39;, &#39;SimpleEditor&#39;);</span>
                <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="p">(</span><span class="nx">len</span> <span class="o">-</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;maxUndo&#39;</span><span class="p">));</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">len</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">tmp</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
                <span class="p">}</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span> <span class="o">=</span> <span class="nx">tmp</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _putUndo</span>
<span class="cm">        * @description Puts the content of the Editor into the _undoCache.</span>
<span class="cm">        * //TODO Convert the hash to a series of TEXTAREAS to store state in.</span>
<span class="cm">        * @param {String} str The content of the Editor</span>
<span class="cm">        */</span>
        <span class="nx">_putUndo</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">str</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">===</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">.</span><span class="nx">length</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">str</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">str</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getEditorHTML</span><span class="p">();</span>
                <span class="kd">var</span> <span class="nx">last</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span><span class="p">];</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">last</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">str</span> <span class="o">!==</span> <span class="nx">last</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span> <span class="o">=</span> <span class="p">[];</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _getUndo</span>
<span class="cm">        * @description Get&#39;s a level from the undo cache.</span>
<span class="cm">        * @param {Number} index The index of the undo level we want to get.</span>
<span class="cm">        * @return {String}</span>
<span class="cm">        */</span>
        <span class="nx">_getUndo</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">=</span> <span class="nx">index</span><span class="p">;</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">[</span><span class="nx">index</span><span class="p">];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _storeUndo</span>
<span class="cm">        * @description Method to call when you want to store an undo state. Currently called from nodeChange and _handleKeyUp</span>
<span class="cm">        */</span>
        <span class="nx">_storeUndo</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_lastCommand</span> <span class="o">===</span> <span class="s1">&#39;undo&#39;</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">_lastCommand</span> <span class="o">===</span> <span class="s1">&#39;redo&#39;</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span> <span class="o">=</span> <span class="p">[];</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_checkUndo</span><span class="p">();</span>
            <span class="kd">var</span> <span class="nx">str</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getEditorHTML</span><span class="p">();</span>
            <span class="c1">//var last = this._undoCache[this._undoCache.length - 1];</span>
            <span class="kd">var</span> <span class="nx">last</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">-</span> <span class="mi">1</span><span class="p">];</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">last</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">str</span> <span class="o">!==</span> <span class="nx">last</span><span class="p">)</span> <span class="p">{</span>
                    <span class="c1">//YAHOO.log(&#39;Storing Undo&#39;, &#39;info&#39;, &#39;SimpleEditor&#39;);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_putUndo</span><span class="p">(</span><span class="nx">str</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="c1">//YAHOO.log(&#39;Storing Undo&#39;, &#39;info&#39;, &#39;SimpleEditor&#39;);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_putUndo</span><span class="p">(</span><span class="nx">str</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_undoNodeChange</span><span class="p">();</span>
        <span class="p">},</span>    
        <span class="cm">/**</span>
<span class="cm">        * @property STR_BEFORE_EDITOR</span>
<span class="cm">        * @description The accessibility string for the element before the iFrame</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_BEFORE_EDITOR</span><span class="o">:</span> <span class="s1">&#39;This text field can contain stylized text and graphics. To cycle through all formatting options, use the keyboard shortcut Control + Shift + T to place focus on the toolbar and navigate between option heading names. &lt;h4&gt;Common formatting keyboard shortcuts:&lt;/h4&gt;&lt;ul&gt;&lt;li&gt;Control Shift B sets text to bold&lt;/li&gt; &lt;li&gt;Control Shift I sets text to italic&lt;/li&gt; &lt;li&gt;Control Shift U underlines text&lt;/li&gt; &lt;li&gt;Control Shift [ aligns text left&lt;/li&gt; &lt;li&gt;Control Shift | centers text&lt;/li&gt; &lt;li&gt;Control Shift ] aligns text right&lt;/li&gt; &lt;li&gt;Control Shift L adds an HTML link&lt;/li&gt; &lt;li&gt;To exit this text editor use the keyboard shortcut Control + Shift + ESC.&lt;/li&gt;&lt;/ul&gt;&#39;</span><span class="p">,</span>    
        <span class="cm">/**</span>
<span class="cm">        * @property STR_CLOSE_WINDOW</span>
<span class="cm">        * @description The Title of the close button in the Editor Window</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_CLOSE_WINDOW</span><span class="o">:</span> <span class="s1">&#39;Close Window&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_CLOSE_WINDOW_NOTE</span>
<span class="cm">        * @description A note appearing in the Editor Window to tell the user that the Escape key will close the window</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_CLOSE_WINDOW_NOTE</span><span class="o">:</span> <span class="s1">&#39;To close this window use the Control + Shift + W key&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_IMAGE_PROP_TITLE</span>
<span class="cm">        * @description The title for the Image Property Editor Window</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_IMAGE_PROP_TITLE</span><span class="o">:</span> <span class="s1">&#39;Image Options&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_IMAGE_TITLE</span>
<span class="cm">        * @description The label string for Image Description</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_IMAGE_TITLE</span><span class="o">:</span> <span class="s1">&#39;Description&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_IMAGE_SIZE</span>
<span class="cm">        * @description The label string for Image Size</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_IMAGE_SIZE</span><span class="o">:</span> <span class="s1">&#39;Size&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_IMAGE_ORIG_SIZE</span>
<span class="cm">        * @description The label string for Original Image Size</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_IMAGE_ORIG_SIZE</span><span class="o">:</span> <span class="s1">&#39;Original Size&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_IMAGE_COPY</span>
<span class="cm">        * @description The label string for the image copy and paste message for Opera and Safari</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_IMAGE_COPY</span><span class="o">:</span> <span class="s1">&#39;&lt;span class=&quot;tip&quot;&gt;&lt;span class=&quot;icon icon-info&quot;&gt;&lt;/span&gt;&lt;strong&gt;Note:&lt;/strong&gt;To move this image just highlight it, cut, and paste where ever you\&#39;d like.&lt;/span&gt;&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_IMAGE_PADDING</span>
<span class="cm">        * @description The label string for the image padding.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_IMAGE_PADDING</span><span class="o">:</span> <span class="s1">&#39;Padding&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_IMAGE_BORDER</span>
<span class="cm">        * @description The label string for the image border.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_IMAGE_BORDER</span><span class="o">:</span> <span class="s1">&#39;Border&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_IMAGE_BORDER_SIZE</span>
<span class="cm">        * @description The label string for the image border size.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_IMAGE_BORDER_SIZE</span><span class="o">:</span> <span class="s1">&#39;Border Size&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_IMAGE_BORDER_TYPE</span>
<span class="cm">        * @description The label string for the image border type.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_IMAGE_BORDER_TYPE</span><span class="o">:</span> <span class="s1">&#39;Border Type&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_IMAGE_TEXTFLOW</span>
<span class="cm">        * @description The label string for the image text flow.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_IMAGE_TEXTFLOW</span><span class="o">:</span> <span class="s1">&#39;Text Flow&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_LOCAL_FILE_WARNING</span>
<span class="cm">        * @description The label string for the local file warning.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_LOCAL_FILE_WARNING</span><span class="o">:</span> <span class="s1">&#39;&lt;span class=&quot;tip&quot;&gt;&lt;span class=&quot;icon icon-warn&quot;&gt;&lt;/span&gt;&lt;strong&gt;Note:&lt;/strong&gt;This image/link points to a file on your computer and will not be accessible to others on the internet.&lt;/span&gt;&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_LINK_PROP_TITLE</span>
<span class="cm">        * @description The label string for the Link Property Editor Window.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_LINK_PROP_TITLE</span><span class="o">:</span> <span class="s1">&#39;Link Options&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_LINK_PROP_REMOVE</span>
<span class="cm">        * @description The label string for the Remove link from text link inside the property editor.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_LINK_PROP_REMOVE</span><span class="o">:</span> <span class="s1">&#39;Remove link from text&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_LINK_NEW_WINDOW</span>
<span class="cm">        * @description The string for the open in a new window label.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_LINK_NEW_WINDOW</span><span class="o">:</span> <span class="s1">&#39;Open in a new window.&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_LINK_TITLE</span>
<span class="cm">        * @description The string for the link description.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_LINK_TITLE</span><span class="o">:</span> <span class="s1">&#39;Description&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @property STR_NONE</span>
<span class="cm">        * @description The string for the word none.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">STR_NONE</span><span class="o">:</span> <span class="s1">&#39;none&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property CLASS_LOCAL_FILE</span>
<span class="cm">        * @description CSS class applied to an element when it&#39;s found to have a local url.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">CLASS_LOCAL_FILE</span><span class="o">:</span> <span class="s1">&#39;warning-localfile&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @protected</span>
<span class="cm">        * @property CLASS_HIDDEN</span>
<span class="cm">        * @description CSS class applied to the body when the hiddenelements button is pressed.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">CLASS_HIDDEN</span><span class="o">:</span> <span class="s1">&#39;yui-hidden&#39;</span><span class="p">,</span>
        <span class="cm">/** </span>
<span class="cm">        * @method init</span>
<span class="cm">        * @description The Editor class&#39; initialization method</span>
<span class="cm">        */</span>
        <span class="nx">init</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">p_oElement</span><span class="p">,</span> <span class="nx">p_oAttributes</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;init&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
            
            <span class="k">this</span><span class="p">.</span><span class="nx">_windows</span> <span class="o">=</span> <span class="p">{};</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_defaultToolbar</span><span class="p">)</span> <span class="p">{</span>            
                <span class="k">this</span><span class="p">.</span><span class="nx">_defaultToolbar</span> <span class="o">=</span> <span class="p">{</span>
                    <span class="nx">collapse</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
                    <span class="nx">titlebar</span><span class="o">:</span> <span class="s1">&#39;Text Editing Tools&#39;</span><span class="p">,</span>
                    <span class="nx">draggable</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
                    <span class="nx">buttonType</span><span class="o">:</span> <span class="s1">&#39;advanced&#39;</span><span class="p">,</span>
                    <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                        <span class="p">{</span> <span class="nx">group</span><span class="o">:</span> <span class="s1">&#39;fontstyle&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Font Name and Size&#39;</span><span class="p">,</span>
                            <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;select&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Arial&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;fontname&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
                                    <span class="nx">menu</span><span class="o">:</span> <span class="p">[</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Arial&#39;</span><span class="p">,</span> <span class="nx">checked</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Arial Black&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Comic Sans MS&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Courier New&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Lucida Console&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Tahoma&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Times New Roman&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Trebuchet MS&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Verdana&#39;</span> <span class="p">}</span>
                                    <span class="p">]</span>
                                <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;spin&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;13&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;fontsize&#39;</span><span class="p">,</span> <span class="nx">range</span><span class="o">:</span> <span class="p">[</span> <span class="mi">9</span><span class="p">,</span> <span class="mi">75</span> <span class="p">],</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span>
                            <span class="p">]</span>
                        <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;separator&#39;</span> <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">group</span><span class="o">:</span> <span class="s1">&#39;textstyle&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Font Style&#39;</span><span class="p">,</span>
                            <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Bold CTRL + SHIFT + B&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;bold&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Italic CTRL + SHIFT + I&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;italic&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Underline CTRL + SHIFT + U&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;underline&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;separator&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Subscript&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;subscript&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Superscript&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;superscript&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span>
                            <span class="p">]</span>
                        <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;separator&#39;</span> <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">group</span><span class="o">:</span> <span class="s1">&#39;textstyle2&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;&amp;nbsp;&#39;</span><span class="p">,</span>
                            <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;color&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Font Color&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;forecolor&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;color&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Background Color&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;backcolor&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;separator&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Remove Formatting&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;removeformat&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Show/Hide Hidden Elements&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;hiddenelements&#39;</span> <span class="p">}</span>
                            <span class="p">]</span>
                        <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;separator&#39;</span> <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">group</span><span class="o">:</span> <span class="s1">&#39;undoredo&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Undo/Redo&#39;</span><span class="p">,</span>
                            <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Undo&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;undo&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Redo&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;redo&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span>
                                
                            <span class="p">]</span>
                        <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;separator&#39;</span> <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">group</span><span class="o">:</span> <span class="s1">&#39;alignment&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Alignment&#39;</span><span class="p">,</span>
                            <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Align Left CTRL + SHIFT + [&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;justifyleft&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Align Center CTRL + SHIFT + |&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;justifycenter&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Align Right CTRL + SHIFT + ]&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;justifyright&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Justify&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;justifyfull&#39;</span> <span class="p">}</span>
                            <span class="p">]</span>
                        <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;separator&#39;</span> <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">group</span><span class="o">:</span> <span class="s1">&#39;parastyle&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Paragraph Style&#39;</span><span class="p">,</span>
                            <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                            <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;select&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Normal&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;heading&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
                                <span class="nx">menu</span><span class="o">:</span> <span class="p">[</span>
                                    <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Normal&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;none&#39;</span><span class="p">,</span> <span class="nx">checked</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                    <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Header 1&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;h1&#39;</span> <span class="p">},</span>
                                    <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Header 2&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;h2&#39;</span> <span class="p">},</span>
                                    <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Header 3&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;h3&#39;</span> <span class="p">},</span>
                                    <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Header 4&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;h4&#39;</span> <span class="p">},</span>
                                    <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Header 5&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;h5&#39;</span> <span class="p">},</span>
                                    <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Header 6&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;h6&#39;</span> <span class="p">}</span>
                                <span class="p">]</span>
                            <span class="p">}</span>
                            <span class="p">]</span>
                        <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;separator&#39;</span> <span class="p">},</span>
                        
                        <span class="p">{</span> <span class="nx">group</span><span class="o">:</span> <span class="s1">&#39;indentlist2&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Indenting and Lists&#39;</span><span class="p">,</span>
                            <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Indent&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;indent&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Outdent&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;outdent&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Create an Unordered List&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;insertunorderedlist&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Create an Ordered List&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;insertorderedlist&#39;</span> <span class="p">}</span>
                            <span class="p">]</span>
                        <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;separator&#39;</span> <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">group</span><span class="o">:</span> <span class="s1">&#39;insertitem&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Insert Item&#39;</span><span class="p">,</span>
                            <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;HTML Link CTRL + SHIFT + L&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;createlink&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Insert Image&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;insertimage&#39;</span> <span class="p">}</span>
                            <span class="p">]</span>
                        <span class="p">}</span>
                    <span class="p">]</span>
                <span class="p">};</span>
            <span class="p">}</span>

            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_defaultImageToolbarConfig</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_defaultImageToolbarConfig</span> <span class="o">=</span> <span class="p">{</span>
                    <span class="nx">buttonType</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">_defaultToolbar</span><span class="p">.</span><span class="nx">buttonType</span><span class="p">,</span>
                    <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                        <span class="p">{</span> <span class="nx">group</span><span class="o">:</span> <span class="s1">&#39;textflow&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_TEXTFLOW</span> <span class="o">+</span> <span class="s1">&#39;:&#39;</span><span class="p">,</span>
                            <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Left&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;left&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Inline&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;inline&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Block&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;block&#39;</span> <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;push&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Right&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;right&#39;</span> <span class="p">}</span>
                            <span class="p">]</span>
                        <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;separator&#39;</span> <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">group</span><span class="o">:</span> <span class="s1">&#39;padding&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_PADDING</span> <span class="o">+</span> <span class="s1">&#39;:&#39;</span><span class="p">,</span>
                            <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;spin&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;0&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;padding&#39;</span><span class="p">,</span> <span class="nx">range</span><span class="o">:</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">50</span><span class="p">]</span> <span class="p">}</span>
                            <span class="p">]</span>
                        <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;separator&#39;</span> <span class="p">},</span>
                        <span class="p">{</span> <span class="nx">group</span><span class="o">:</span> <span class="s1">&#39;border&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_BORDER</span> <span class="o">+</span> <span class="s1">&#39;:&#39;</span><span class="p">,</span>
                            <span class="nx">buttons</span><span class="o">:</span> <span class="p">[</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;select&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_BORDER_SIZE</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;bordersize&#39;</span><span class="p">,</span>
                                    <span class="nx">menu</span><span class="o">:</span> <span class="p">[</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;none&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;0&#39;</span><span class="p">,</span> <span class="nx">checked</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;1px&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;1&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;2px&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;2&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;3px&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;3&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;4px&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;4&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;5px&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;5&#39;</span> <span class="p">}</span>
                                    <span class="p">]</span>
                                <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;select&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_BORDER_TYPE</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;bordertype&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
                                    <span class="nx">menu</span><span class="o">:</span> <span class="p">[</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Solid&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;solid&#39;</span><span class="p">,</span> <span class="nx">checked</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Dashed&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;dashed&#39;</span> <span class="p">},</span>
                                        <span class="p">{</span> <span class="nx">text</span><span class="o">:</span> <span class="s1">&#39;Dotted&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;dotted&#39;</span> <span class="p">}</span>
                                    <span class="p">]</span>
                                <span class="p">},</span>
                                <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;color&#39;</span><span class="p">,</span> <span class="nx">label</span><span class="o">:</span> <span class="s1">&#39;Border Color&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="o">:</span> <span class="s1">&#39;bordercolor&#39;</span><span class="p">,</span> <span class="nx">disabled</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span>
                            <span class="p">]</span>
                        <span class="p">}</span>
                    <span class="p">]</span>
                <span class="p">};</span>
            <span class="p">}</span>

            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Editor</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">init</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">p_oElement</span><span class="p">,</span> <span class="nx">p_oAttributes</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="nx">_render</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Editor</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">_render</span><span class="p">.</span><span class="nx">apply</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">arguments</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span>
            <span class="c1">//Render the panel in another thread and delay it a little..</span>
            <span class="nb">window</span><span class="p">.</span><span class="nx">setTimeout</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="nx">self</span><span class="p">.</span><span class="nx">_renderPanel</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="nx">self</span><span class="p">);</span>
            <span class="p">},</span> <span class="mi">800</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method initAttributes</span>
<span class="cm">        * @description Initializes all of the configuration attributes used to create </span>
<span class="cm">        * the editor.</span>
<span class="cm">        * @param {Object} attr Object literal specifying a set of </span>
<span class="cm">        * configuration attributes used to create the editor.</span>
<span class="cm">        */</span>
        <span class="nx">initAttributes</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">attr</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Editor</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">initAttributes</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">attr</span><span class="p">);</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute localFileWarning</span>
<span class="cm">            * @description Should we throw the warning if we detect a file that is local to their machine?</span>
<span class="cm">            * @default true</span>
<span class="cm">            * @type Boolean</span>
<span class="cm">            */</span>            
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;localFileWarning&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">locaFileWarning</span> <span class="o">||</span> <span class="kc">true</span>
            <span class="p">});</span>

            <span class="cm">/**</span>
<span class="cm">            * @attribute hiddencss</span>
<span class="cm">            * @description The CSS used to show/hide hidden elements on the page, these rules must be prefixed with the class provided in &lt;code&gt;this.CLASS_HIDDEN&lt;/code&gt;</span>
<span class="cm">            * @default &lt;code&gt;&lt;pre&gt;</span>
<span class="cm">            .yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u,</span>
<span class="cm">            .yui-hidden div, .yui-hidden p, .yui-hidden span, .yui-hidden img, .yui-hidden ul, .yui-hidden ol,</span>
<span class="cm">            .yui-hidden li, .yui-hidden table {</span>
<span class="cm">                border: 1px dotted #ccc;</span>
<span class="cm">            }</span>
<span class="cm">            .yui-hidden .yui-non {</span>
<span class="cm">                border: none;</span>
<span class="cm">            }</span>
<span class="cm">            .yui-hidden img {</span>
<span class="cm">                padding: 2px;</span>
<span class="cm">            }&lt;/pre&gt;&lt;/code&gt;</span>
<span class="cm">            * @type String</span>
<span class="cm">            */</span>            
            <span class="k">this</span><span class="p">.</span><span class="nx">setAttributeConfig</span><span class="p">(</span><span class="s1">&#39;hiddencss&#39;</span><span class="p">,</span> <span class="p">{</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">attr</span><span class="p">.</span><span class="nx">hiddencss</span> <span class="o">||</span> <span class="s1">&#39;.yui-hidden font, .yui-hidden strong, .yui-hidden b, .yui-hidden em, .yui-hidden i, .yui-hidden u, .yui-hidden div,.yui-hidden p,.yui-hidden span,.yui-hidden img, .yui-hidden ul, .yui-hidden ol, .yui-hidden li, .yui-hidden table { border: 1px dotted #ccc; } .yui-hidden .yui-non { border: none; } .yui-hidden img { padding: 2px; }&#39;</span><span class="p">,</span>
                <span class="nx">writeOnce</span><span class="o">:</span> <span class="kc">true</span>
            <span class="p">});</span>
           
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _windows</span>
<span class="cm">        * @description A reference to the HTML elements used for the body of Editor Windows.</span>
<span class="cm">        */</span>
        <span class="nx">_windows</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _defaultImageToolbar</span>
<span class="cm">        * @description A reference to the Toolbar Object inside Image Editor Window.</span>
<span class="cm">        */</span>
        <span class="nx">_defaultImageToolbar</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _defaultImageToolbarConfig</span>
<span class="cm">        * @description Config to be used for the default Image Editor Window.</span>
<span class="cm">        */</span>
        <span class="nx">_defaultImageToolbarConfig</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _fixNodes</span>
<span class="cm">        * @description Fix href and imgs as well as remove invalid HTML.</span>
<span class="cm">        */</span>
        <span class="nx">_fixNodes</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Editor</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">_fixNodes</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">);</span>
            <span class="k">try</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">url</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>

                <span class="kd">var</span> <span class="nx">imgs</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">().</span><span class="nx">getElementsByTagName</span><span class="p">(</span><span class="s1">&#39;img&#39;</span><span class="p">);</span>
                <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">im</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">im</span> <span class="o">&lt;</span> <span class="nx">imgs</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">im</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">imgs</span><span class="p">[</span><span class="nx">im</span><span class="p">].</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;href&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">url</span> <span class="o">=</span> <span class="nx">imgs</span><span class="p">[</span><span class="nx">im</span><span class="p">].</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;src&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isLocalFile</span><span class="p">(</span><span class="nx">url</span><span class="p">))</span> <span class="p">{</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">imgs</span><span class="p">[</span><span class="nx">im</span><span class="p">],</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_LOCAL_FILE</span><span class="p">);</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="nx">imgs</span><span class="p">[</span><span class="nx">im</span><span class="p">],</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_LOCAL_FILE</span><span class="p">);</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
                <span class="kd">var</span> <span class="nx">fakeAs</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">().</span><span class="nx">body</span><span class="p">.</span><span class="nx">getElementsByTagName</span><span class="p">(</span><span class="s1">&#39;a&#39;</span><span class="p">);</span>
                <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">a</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">a</span> <span class="o">&lt;</span> <span class="nx">fakeAs</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">a</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">fakeAs</span><span class="p">[</span><span class="nx">a</span><span class="p">].</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;href&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">url</span> <span class="o">=</span> <span class="nx">fakeAs</span><span class="p">[</span><span class="nx">a</span><span class="p">].</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;href&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isLocalFile</span><span class="p">(</span><span class="nx">url</span><span class="p">))</span> <span class="p">{</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">fakeAs</span><span class="p">[</span><span class="nx">a</span><span class="p">],</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_LOCAL_FILE</span><span class="p">);</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="nx">fakeAs</span><span class="p">[</span><span class="nx">a</span><span class="p">],</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_LOCAL_FILE</span><span class="p">);</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span> <span class="k">catch</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _disabled</span>
<span class="cm">        * @description The Toolbar items that should be disabled if there is no selection present in the editor.</span>
<span class="cm">        * @type Array</span>
<span class="cm">        */</span>
        <span class="nx">_disabled</span><span class="o">:</span> <span class="p">[</span> <span class="s1">&#39;createlink&#39;</span><span class="p">,</span> <span class="s1">&#39;forecolor&#39;</span><span class="p">,</span> <span class="s1">&#39;backcolor&#39;</span><span class="p">,</span> <span class="s1">&#39;fontname&#39;</span><span class="p">,</span> <span class="s1">&#39;fontsize&#39;</span><span class="p">,</span> <span class="s1">&#39;superscript&#39;</span><span class="p">,</span> <span class="s1">&#39;subscript&#39;</span><span class="p">,</span> <span class="s1">&#39;removeformat&#39;</span><span class="p">,</span> <span class="s1">&#39;heading&#39;</span><span class="p">,</span> <span class="s1">&#39;indent&#39;</span> <span class="p">],</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _alwaysDisabled</span>
<span class="cm">        * @description The Toolbar items that should ALWAYS be disabled event if there is a selection present in the editor.</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">_alwaysDisabled</span><span class="o">:</span> <span class="p">{</span> <span class="s1">&#39;outdent&#39;</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property _alwaysEnabled</span>
<span class="cm">        * @description The Toolbar items that should ALWAYS be enabled event if there isn&#39;t a selection present in the editor.</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">_alwaysEnabled</span><span class="o">:</span> <span class="p">{</span> <span class="nx">hiddenelements</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handleKeyDown</span>
<span class="cm">        * @param {Event} ev The event we are working on.</span>
<span class="cm">        * @description Override method that handles some new keydown events inside the iFrame document.</span>
<span class="cm">        */</span>
        <span class="nx">_handleKeyDown</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Editor</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">_handleKeyDown</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">ev</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">doExec</span> <span class="o">=</span> <span class="kc">false</span><span class="p">,</span>
                <span class="nx">action</span> <span class="o">=</span> <span class="kc">null</span><span class="p">,</span>
                <span class="nx">exec</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>

            <span class="k">switch</span> <span class="p">(</span><span class="nx">ev</span><span class="p">.</span><span class="nx">keyCode</span><span class="p">)</span> <span class="p">{</span>
                <span class="c1">//case 219: //Left</span>
                <span class="k">case</span> <span class="k">this</span><span class="p">.</span><span class="nx">_keyMap</span><span class="p">.</span><span class="nx">JUSTIFY_LEFT</span><span class="p">.</span><span class="nx">key</span><span class="o">:</span> <span class="c1">//Left</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_checkKey</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_keyMap</span><span class="p">.</span><span class="nx">JUSTIFY_LEFT</span><span class="p">,</span> <span class="nx">ev</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">action</span> <span class="o">=</span> <span class="s1">&#39;justifyleft&#39;</span><span class="p">;</span>
                        <span class="nx">doExec</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">break</span><span class="p">;</span>
                <span class="c1">//case 220: //Center</span>
                <span class="k">case</span> <span class="k">this</span><span class="p">.</span><span class="nx">_keyMap</span><span class="p">.</span><span class="nx">JUSTIFY_CENTER</span><span class="p">.</span><span class="nx">key</span><span class="o">:</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_checkKey</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_keyMap</span><span class="p">.</span><span class="nx">JUSTIFY_CENTER</span><span class="p">,</span> <span class="nx">ev</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">action</span> <span class="o">=</span> <span class="s1">&#39;justifycenter&#39;</span><span class="p">;</span>
                        <span class="nx">doExec</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">break</span><span class="p">;</span>
                <span class="k">case</span> <span class="mi">221</span><span class="o">:</span> <span class="c1">//Right</span>
                <span class="k">case</span> <span class="k">this</span><span class="p">.</span><span class="nx">_keyMap</span><span class="p">.</span><span class="nx">JUSTIFY_RIGHT</span><span class="p">.</span><span class="nx">key</span><span class="o">:</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_checkKey</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_keyMap</span><span class="p">.</span><span class="nx">JUSTIFY_RIGHT</span><span class="p">,</span> <span class="nx">ev</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">action</span> <span class="o">=</span> <span class="s1">&#39;justifyright&#39;</span><span class="p">;</span>
                        <span class="nx">doExec</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">break</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">doExec</span> <span class="o">&amp;&amp;</span> <span class="nx">action</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">execCommand</span><span class="p">(</span><span class="nx">action</span><span class="p">,</span> <span class="kc">null</span><span class="p">);</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">nodeChange</span><span class="p">();</span>
            <span class="p">}</span>
        <span class="p">},</span>        
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _renderCreateLinkWindow</span>
<span class="cm">        * @description Pre renders the CreateLink window so we get faster window opening.</span>
<span class="cm">        */</span>
        <span class="nx">_renderCreateLinkWindow</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">str</span> <span class="o">=</span> <span class="s1">&#39;&lt;label for=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&quot;&gt;&lt;strong&gt;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_LINK_URL</span> <span class="o">+</span> <span class="s1">&#39;:&lt;/strong&gt; &lt;input type=&quot;text&quot; name=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&quot; id=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&quot; value=&quot;&quot;&gt;&lt;/label&gt;&#39;</span><span class="p">;</span>
                <span class="nx">str</span> <span class="o">+=</span> <span class="s1">&#39;&lt;label for=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_target&quot;&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;input type=&quot;checkbox&quot; name=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_target&quot; id=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_target&quot; value=&quot;_blank&quot; class=&quot;createlink_target&quot;&gt; &#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_LINK_NEW_WINDOW</span> <span class="o">+</span> <span class="s1">&#39;&lt;/label&gt;&#39;</span><span class="p">;</span>
                <span class="nx">str</span> <span class="o">+=</span> <span class="s1">&#39;&lt;label for=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_title&quot;&gt;&lt;strong&gt;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_LINK_TITLE</span> <span class="o">+</span> <span class="s1">&#39;:&lt;/strong&gt; &lt;input type=&quot;text&quot; name=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_title&quot; id=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_title&quot; value=&quot;&quot;&gt;&lt;/label&gt;&#39;</span><span class="p">;</span>
                
                <span class="kd">var</span> <span class="nx">body</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
                <span class="nx">body</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">str</span><span class="p">;</span>

                <span class="kd">var</span> <span class="nx">unlinkCont</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
                <span class="nx">unlinkCont</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;removeLink&#39;</span><span class="p">;</span>
                <span class="kd">var</span> <span class="nx">unlink</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;a&#39;</span><span class="p">);</span>
                <span class="nx">unlink</span><span class="p">.</span><span class="nx">href</span> <span class="o">=</span> <span class="s1">&#39;#&#39;</span><span class="p">;</span>
                <span class="nx">unlink</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_LINK_PROP_REMOVE</span><span class="p">;</span>
                <span class="nx">unlink</span><span class="p">.</span><span class="nx">title</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_LINK_PROP_REMOVE</span><span class="p">;</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">unlink</span><span class="p">,</span> <span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">Event</span><span class="p">.</span><span class="nx">stopEvent</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">unsubscribeAll</span><span class="p">(</span><span class="s1">&#39;afterExecCommand&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">execCommand</span><span class="p">(</span><span class="s1">&#39;unlink&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">closeWindow</span><span class="p">();</span>
                <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="nx">unlinkCont</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">unlink</span><span class="p">);</span>
                <span class="nx">body</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">unlinkCont</span><span class="p">);</span>
                
                <span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">.</span><span class="nx">createlink</span> <span class="o">=</span> <span class="p">{};</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">.</span><span class="nx">createlink</span><span class="p">.</span><span class="nx">body</span> <span class="o">=</span> <span class="nx">body</span><span class="p">;</span>
                <span class="c1">//body.style.display = &#39;none&#39;;</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">body</span><span class="p">,</span> <span class="s1">&#39;keyup&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">Event</span><span class="p">.</span><span class="nx">stopPropagation</span><span class="p">(</span><span class="nx">e</span><span class="p">);</span>
                <span class="p">});</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">editor_form</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">body</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;windowCreateLinkRender&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;windowCreateLinkRender&#39;</span><span class="p">,</span> <span class="nx">panel</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">),</span> <span class="nx">body</span><span class="o">:</span> <span class="nx">body</span> <span class="p">});</span>
                <span class="k">return</span> <span class="nx">body</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="nx">_handleCreateLinkClick</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getSelectedElement</span><span class="p">();</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">el</span><span class="p">,</span> <span class="s1">&#39;img&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">STOP_EXEC_COMMAND</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="nx">el</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;insertimageClick&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;insertimageClick&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span> <span class="p">});</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;afterExecCommand&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;afterExecCommand&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="o">:</span> <span class="k">this</span> <span class="p">});</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;limitCommands&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">getButtonByValue</span><span class="p">(</span><span class="s1">&#39;createlink&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Toolbar Button for (createlink) was not found, skipping exec.&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
                    <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>
            
            <span class="k">this</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;afterExecCommand&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">win</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">EditorWindow</span><span class="p">(</span><span class="s1">&#39;createlink&#39;</span><span class="p">,</span> <span class="p">{</span>
                    <span class="nx">width</span><span class="o">:</span> <span class="s1">&#39;350px&#39;</span>
                <span class="p">});</span>
                
                <span class="kd">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span>
                    <span class="nx">url</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
                    <span class="nx">title</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
                    <span class="nx">target</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
                    <span class="nx">localFile</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">win</span><span class="p">.</span><span class="nx">el</span> <span class="o">=</span> <span class="nx">el</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;href&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span> <span class="o">!==</span> <span class="kc">null</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">url</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;href&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isLocalFile</span><span class="p">(</span><span class="nx">url</span><span class="p">))</span> <span class="p">{</span>
                            <span class="c1">//Local File throw Warning</span>
                            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Local file reference found, show local warning&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
                            <span class="nx">win</span><span class="p">.</span><span class="nx">setFooter</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">STR_LOCAL_FILE_WARNING</span><span class="p">);</span>
                            <span class="nx">localFile</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">win</span><span class="p">.</span><span class="nx">setFooter</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">)</span> <span class="o">!==</span> <span class="kc">null</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">title</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;target&#39;</span><span class="p">)</span> <span class="o">!==</span> <span class="kc">null</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">target</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;target&#39;</span><span class="p">);</span>
                    <span class="p">}</span>
                <span class="p">}</span>
                <span class="kd">var</span> <span class="nx">body</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">.</span><span class="nx">createlink</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">.</span><span class="nx">createlink</span><span class="p">.</span><span class="nx">body</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">body</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">.</span><span class="nx">createlink</span><span class="p">.</span><span class="nx">body</span><span class="p">;</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">body</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_renderCreateLinkWindow</span><span class="p">();</span>
                <span class="p">}</span>

                <span class="nx">win</span><span class="p">.</span><span class="nx">setHeader</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">STR_LINK_PROP_TITLE</span><span class="p">);</span>
                <span class="nx">win</span><span class="p">.</span><span class="nx">setBody</span><span class="p">(</span><span class="nx">body</span><span class="p">);</span>

                <span class="nx">Event</span><span class="p">.</span><span class="nx">purgeElement</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&#39;</span><span class="p">);</span>

                <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">url</span><span class="p">;</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_title&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">title</span><span class="p">;</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_target&#39;</span><span class="p">).</span><span class="nx">checked</span> <span class="o">=</span> <span class="p">((</span><span class="nx">target</span><span class="p">)</span> <span class="o">?</span> <span class="kc">true</span> <span class="o">:</span> <span class="kc">false</span><span class="p">);</span>
                

                <span class="nx">Event</span><span class="p">.</span><span class="nx">onAvailable</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">id</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">);</span>
                    <span class="nb">window</span><span class="p">.</span><span class="nx">setTimeout</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                        <span class="k">try</span> <span class="p">{</span>
                            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&#39;</span><span class="p">).</span><span class="nx">focus</span><span class="p">();</span>
                        <span class="p">}</span> <span class="k">catch</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{}</span>
                    <span class="p">},</span> <span class="mi">50</span><span class="p">);</span>

                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isLocalFile</span><span class="p">(</span><span class="nx">url</span><span class="p">))</span> <span class="p">{</span>
                        <span class="c1">//Local File throw Warning</span>
                        <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&#39;</span><span class="p">,</span> <span class="s1">&#39;warning&#39;</span><span class="p">);</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Local file reference found, show local warning&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">setFooter</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">STR_LOCAL_FILE_WARNING</span><span class="p">);</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&#39;</span><span class="p">,</span> <span class="s1">&#39;warning&#39;</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">setFooter</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&#39;</span><span class="p">,</span> <span class="s1">&#39;blur&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">url</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&#39;</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isLocalFile</span><span class="p">(</span><span class="nx">url</span><span class="p">.</span><span class="nx">value</span><span class="p">))</span> <span class="p">{</span>
                            <span class="c1">//Local File throw Warning</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">url</span><span class="p">,</span> <span class="s1">&#39;warning&#39;</span><span class="p">);</span>
                            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Local file reference found, show local warning&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">setFooter</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">STR_LOCAL_FILE_WARNING</span><span class="p">);</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="nx">url</span><span class="p">,</span> <span class="s1">&#39;warning&#39;</span><span class="p">);</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">setFooter</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span>
                        <span class="p">}</span>
                    <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                
                <span class="k">this</span><span class="p">.</span><span class="nx">openWindow</span><span class="p">(</span><span class="nx">win</span><span class="p">);</span>

            <span class="p">});</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handleCreateLinkWindowClose</span>
<span class="cm">        * @description Handles the closing of the Link Properties Window.</span>
<span class="cm">        */</span>
        <span class="nx">_handleCreateLinkWindowClose</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            
            <span class="kd">var</span> <span class="nx">url</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&#39;</span><span class="p">),</span>
                <span class="nx">target</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_target&#39;</span><span class="p">),</span>
                <span class="nx">title</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_title&#39;</span><span class="p">),</span>
                <span class="nx">el</span> <span class="o">=</span> <span class="nx">arguments</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">win</span><span class="p">.</span><span class="nx">el</span><span class="p">,</span>
                <span class="nx">a</span> <span class="o">=</span> <span class="nx">el</span><span class="p">;</span>

            <span class="k">if</span> <span class="p">(</span><span class="nx">url</span> <span class="o">&amp;&amp;</span> <span class="nx">url</span><span class="p">.</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">urlValue</span> <span class="o">=</span> <span class="nx">url</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">((</span><span class="nx">urlValue</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="s1">&#39;:/&#39;</span><span class="o">+</span><span class="s1">&#39;/&#39;</span><span class="p">)</span> <span class="o">==</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">urlValue</span><span class="p">.</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">1</span><span class="p">)</span> <span class="o">!=</span> <span class="s1">&#39;/&#39;</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">urlValue</span><span class="p">.</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">6</span><span class="p">).</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">!=</span> <span class="s1">&#39;mailto&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">((</span><span class="nx">urlValue</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="s1">&#39;@&#39;</span><span class="p">)</span> <span class="o">!=</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">urlValue</span><span class="p">.</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">6</span><span class="p">).</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">!=</span> <span class="s1">&#39;mailto&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="c1">//Found an @ sign, prefix with mailto:</span>
                        <span class="nx">urlValue</span> <span class="o">=</span> <span class="s1">&#39;mailto:&#39;</span> <span class="o">+</span> <span class="nx">urlValue</span><span class="p">;</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="c1">// :// not found adding</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">urlValue</span><span class="p">.</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span> <span class="o">!=</span> <span class="s1">&#39;#&#39;</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">urlValue</span> <span class="o">=</span> <span class="s1">&#39;http:/&#39;</span><span class="o">+</span><span class="s1">&#39;/&#39;</span> <span class="o">+</span> <span class="nx">urlValue</span><span class="p">;</span>
                        <span class="p">}</span>
                        
                    <span class="p">}</span>
                <span class="p">}</span>
                <span class="nx">el</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;href&#39;</span><span class="p">,</span> <span class="nx">urlValue</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">target</span><span class="p">.</span><span class="nx">checked</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">el</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;target&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="p">.</span><span class="nx">value</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">el</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;target&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="nx">el</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">,</span> <span class="p">((</span><span class="nx">title</span><span class="p">.</span><span class="nx">value</span><span class="p">)</span> <span class="o">?</span> <span class="nx">title</span><span class="p">.</span><span class="nx">value</span> <span class="o">:</span> <span class="s1">&#39;&#39;</span><span class="p">));</span>

            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">_span</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">().</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;span&#39;</span><span class="p">);</span>
                <span class="nx">_span</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">;</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">_span</span><span class="p">,</span> <span class="s1">&#39;yui-non&#39;</span><span class="p">);</span>
                <span class="nx">el</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">replaceChild</span><span class="p">(</span><span class="nx">_span</span><span class="p">,</span> <span class="nx">el</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="nx">url</span><span class="p">,</span> <span class="s1">&#39;warning&#39;</span><span class="p">);</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_url&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_title&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_createlink_target&#39;</span><span class="p">).</span><span class="nx">checked</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">nodeChange</span><span class="p">();</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span> <span class="o">=</span> <span class="p">[];</span>
            
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _renderInsertImageWindow</span>
<span class="cm">        * @description Pre renders the InsertImage window so we get faster window opening.</span>
<span class="cm">        */</span>
        <span class="nx">_renderInsertImageWindow</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
                <span class="kd">var</span> <span class="nx">str</span> <span class="o">=</span> <span class="s1">&#39;&lt;label for=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_url&quot;&gt;&lt;strong&gt;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_URL</span> <span class="o">+</span> <span class="s1">&#39;:&lt;/strong&gt; &lt;input type=&quot;text&quot; id=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_url&quot; value=&quot;&quot; size=&quot;40&quot;&gt;&lt;/label&gt;&#39;</span><span class="p">;</span>
                <span class="kd">var</span> <span class="nx">body</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
                <span class="nx">body</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">str</span><span class="p">;</span>

                <span class="kd">var</span> <span class="nx">tbarCont</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
                <span class="nx">tbarCont</span><span class="p">.</span><span class="nx">id</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_img_toolbar&#39;</span><span class="p">;</span>
                <span class="nx">body</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">tbarCont</span><span class="p">);</span>

                <span class="kd">var</span> <span class="nx">str2</span> <span class="o">=</span> <span class="s1">&#39;&lt;label for=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_title&quot;&gt;&lt;strong&gt;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_TITLE</span> <span class="o">+</span> <span class="s1">&#39;:&lt;/strong&gt; &lt;input type=&quot;text&quot; id=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_title&quot; value=&quot;&quot; size=&quot;40&quot;&gt;&lt;/label&gt;&#39;</span><span class="p">;</span>
                <span class="nx">str2</span> <span class="o">+=</span> <span class="s1">&#39;&lt;label for=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_link&quot;&gt;&lt;strong&gt;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_LINK_URL</span> <span class="o">+</span> <span class="s1">&#39;:&lt;/strong&gt; &lt;input type=&quot;text&quot; name=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_link&quot; id=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_link&quot; value=&quot;&quot;&gt;&lt;/label&gt;&#39;</span><span class="p">;</span>
                <span class="nx">str2</span> <span class="o">+=</span> <span class="s1">&#39;&lt;label for=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_target&quot;&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;input type=&quot;checkbox&quot; name=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_target_&quot; id=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_target&quot; value=&quot;_blank&quot; class=&quot;insertimage_target&quot;&gt; &#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_LINK_NEW_WINDOW</span> <span class="o">+</span> <span class="s1">&#39;&lt;/label&gt;&#39;</span><span class="p">;</span>
                <span class="kd">var</span> <span class="nx">div</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
                <span class="nx">div</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">str2</span><span class="p">;</span>
                <span class="nx">body</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">div</span><span class="p">);</span>

                <span class="kd">var</span> <span class="nx">o</span> <span class="o">=</span> <span class="p">{};</span>
                <span class="nx">Lang</span><span class="p">.</span><span class="nx">augmentObject</span><span class="p">(</span><span class="nx">o</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_defaultImageToolbarConfig</span><span class="p">);</span> <span class="c1">//Break the config reference</span>

                <span class="kd">var</span> <span class="nx">tbar</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Toolbar</span><span class="p">(</span><span class="nx">tbarCont</span><span class="p">,</span> <span class="nx">o</span><span class="p">);</span>
                <span class="nx">tbar</span><span class="p">.</span><span class="nx">editor_el</span> <span class="o">=</span> <span class="nx">el</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_defaultImageToolbar</span> <span class="o">=</span> <span class="nx">tbar</span><span class="p">;</span>
                
                <span class="kd">var</span> <span class="nx">cont</span> <span class="o">=</span> <span class="nx">tbar</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;cont&#39;</span><span class="p">);</span>
                <span class="kd">var</span> <span class="nx">hw</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
                <span class="nx">hw</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;yui-toolbar-group yui-toolbar-group-height-width height-width&#39;</span><span class="p">;</span>
                <span class="nx">hw</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;&lt;h3&gt;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_SIZE</span> <span class="o">+</span> <span class="s1">&#39;:&lt;/h3&gt;&#39;</span><span class="p">;</span>
                <span class="nx">hw</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">+=</span> <span class="s1">&#39;&lt;span tabIndex=&quot;-1&quot;&gt;&lt;input type=&quot;text&quot; size=&quot;3&quot; value=&quot;&quot; id=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_width&quot;&gt; x &lt;input type=&quot;text&quot; size=&quot;3&quot; value=&quot;&quot; id=&quot;&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_height&quot;&gt;&lt;/span&gt;&#39;</span><span class="p">;</span>
                <span class="nx">cont</span><span class="p">.</span><span class="nx">insertBefore</span><span class="p">(</span><span class="nx">hw</span><span class="p">,</span> <span class="nx">cont</span><span class="p">.</span><span class="nx">firstChild</span><span class="p">);</span>

                <span class="nx">Event</span><span class="p">.</span><span class="nx">onAvailable</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_width&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                    <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_width&#39;</span><span class="p">,</span> <span class="s1">&#39;blur&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">value</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_width&#39;</span><span class="p">).</span><span class="nx">value</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">value</span> <span class="o">&gt;</span> <span class="mi">5</span><span class="p">)</span> <span class="p">{</span>
                           <span class="k">this</span><span class="p">.</span><span class="nx">_defaultImageToolbar</span><span class="p">.</span><span class="nx">editor_el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">width</span> <span class="o">=</span> <span class="nx">value</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                            <span class="c1">//Removed moveWindow call so the window doesn&#39;t jump</span>
                            <span class="c1">//this.moveWindow();</span>
                        <span class="p">}</span>
                    <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">onAvailable</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_height&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                    <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_height&#39;</span><span class="p">,</span> <span class="s1">&#39;blur&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">value</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_height&#39;</span><span class="p">).</span><span class="nx">value</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">value</span> <span class="o">&gt;</span> <span class="mi">5</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">_defaultImageToolbar</span><span class="p">.</span><span class="nx">editor_el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span> <span class="o">=</span> <span class="nx">value</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                            <span class="c1">//Removed moveWindow call so the window doesn&#39;t jump</span>
                            <span class="c1">//this.moveWindow();</span>
                        <span class="p">}</span>
                    <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>


                <span class="nx">tbar</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;colorPickerClicked&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">o</span><span class="p">)</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">size</span> <span class="o">=</span> <span class="s1">&#39;1&#39;</span><span class="p">,</span> <span class="nx">type</span> <span class="o">=</span> <span class="s1">&#39;solid&#39;</span><span class="p">,</span> <span class="nx">color</span> <span class="o">=</span> <span class="s1">&#39;black&#39;</span><span class="p">,</span> <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_defaultImageToolbar</span><span class="p">.</span><span class="nx">editor_el</span><span class="p">;</span>

                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftWidth</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">size</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftWidth</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftStyle</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">type</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftStyle</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftColor</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">color</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftColor</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="kd">var</span> <span class="nx">borderString</span> <span class="o">=</span> <span class="nx">size</span> <span class="o">+</span> <span class="s1">&#39;px &#39;</span> <span class="o">+</span> <span class="nx">type</span> <span class="o">+</span> <span class="s1">&#39; #&#39;</span> <span class="o">+</span> <span class="nx">o</span><span class="p">.</span><span class="nx">color</span><span class="p">;</span>
                    <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">border</span> <span class="o">=</span> <span class="nx">borderString</span><span class="p">;</span>
                <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>

                <span class="nx">tbar</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;buttonClick&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">o</span><span class="p">)</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">value</span> <span class="o">=</span> <span class="nx">o</span><span class="p">.</span><span class="nx">button</span><span class="p">.</span><span class="nx">value</span><span class="p">,</span>
                        <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_defaultImageToolbar</span><span class="p">.</span><span class="nx">editor_el</span><span class="p">,</span>
                        <span class="nx">borderString</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">button</span><span class="p">.</span><span class="nx">menucmd</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">value</span> <span class="o">=</span> <span class="nx">o</span><span class="p">.</span><span class="nx">button</span><span class="p">.</span><span class="nx">menucmd</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="kd">var</span> <span class="nx">size</span> <span class="o">=</span> <span class="s1">&#39;1&#39;</span><span class="p">,</span> <span class="nx">type</span> <span class="o">=</span> <span class="s1">&#39;solid&#39;</span><span class="p">,</span> <span class="nx">color</span> <span class="o">=</span> <span class="s1">&#39;black&#39;</span><span class="p">;</span>

                    <span class="cm">/* All border calcs are done on the left border</span>
<span class="cm">                        since our default interface only supports</span>
<span class="cm">                        one border size/type and color */</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftWidth</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">size</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftWidth</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftStyle</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">type</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftStyle</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftColor</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">color</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftColor</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">switch</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">case</span> <span class="s1">&#39;bordersize&#39;</span><span class="o">:</span>
                            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_lastImage</span><span class="p">)</span> <span class="p">{</span>
                                <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_lastImage</span><span class="p">,</span> <span class="s1">&#39;selected&#39;</span><span class="p">);</span>
                                <span class="k">this</span><span class="p">.</span><span class="nx">_lastImage</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                            <span class="p">}</span>

                            <span class="nx">borderString</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">button</span><span class="p">.</span><span class="nx">value</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;px &#39;</span> <span class="o">+</span> <span class="nx">type</span> <span class="o">+</span> <span class="s1">&#39; &#39;</span> <span class="o">+</span> <span class="nx">color</span><span class="p">;</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">border</span> <span class="o">=</span> <span class="nx">borderString</span><span class="p">;</span>
                            <span class="k">if</span> <span class="p">(</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">button</span><span class="p">.</span><span class="nx">value</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
                                <span class="nx">tbar</span><span class="p">.</span><span class="nx">enableButton</span><span class="p">(</span><span class="s1">&#39;bordertype&#39;</span><span class="p">);</span>
                                <span class="nx">tbar</span><span class="p">.</span><span class="nx">enableButton</span><span class="p">(</span><span class="s1">&#39;bordercolor&#39;</span><span class="p">);</span>
                            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                                <span class="nx">tbar</span><span class="p">.</span><span class="nx">disableButton</span><span class="p">(</span><span class="s1">&#39;bordertype&#39;</span><span class="p">);</span>
                                <span class="nx">tbar</span><span class="p">.</span><span class="nx">disableButton</span><span class="p">(</span><span class="s1">&#39;bordercolor&#39;</span><span class="p">);</span>
                            <span class="p">}</span>
                            <span class="k">break</span><span class="p">;</span>
                        <span class="k">case</span> <span class="s1">&#39;bordertype&#39;</span><span class="o">:</span>
                            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_lastImage</span><span class="p">)</span> <span class="p">{</span>
                                <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_lastImage</span><span class="p">,</span> <span class="s1">&#39;selected&#39;</span><span class="p">);</span>
                                <span class="k">this</span><span class="p">.</span><span class="nx">_lastImage</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                            <span class="p">}</span>
                            <span class="nx">borderString</span> <span class="o">=</span> <span class="nx">size</span> <span class="o">+</span> <span class="s1">&#39;px &#39;</span> <span class="o">+</span> <span class="nx">o</span><span class="p">.</span><span class="nx">button</span><span class="p">.</span><span class="nx">value</span> <span class="o">+</span> <span class="s1">&#39; &#39;</span> <span class="o">+</span> <span class="nx">color</span><span class="p">;</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">border</span> <span class="o">=</span> <span class="nx">borderString</span><span class="p">;</span>
                            <span class="k">break</span><span class="p">;</span>
                        <span class="k">case</span> <span class="s1">&#39;right&#39;</span><span class="o">:</span>
                        <span class="k">case</span> <span class="s1">&#39;left&#39;</span><span class="o">:</span>
                            <span class="nx">tbar</span><span class="p">.</span><span class="nx">deselectAllButtons</span><span class="p">();</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">align</span> <span class="o">=</span> <span class="nx">o</span><span class="p">.</span><span class="nx">button</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span>
                            <span class="k">break</span><span class="p">;</span>
                        <span class="k">case</span> <span class="s1">&#39;inline&#39;</span><span class="o">:</span>
                            <span class="nx">tbar</span><span class="p">.</span><span class="nx">deselectAllButtons</span><span class="p">();</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">align</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
                            <span class="k">break</span><span class="p">;</span>
                        <span class="k">case</span> <span class="s1">&#39;block&#39;</span><span class="o">:</span>
                            <span class="nx">tbar</span><span class="p">.</span><span class="nx">deselectAllButtons</span><span class="p">();</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s1">&#39;block&#39;</span><span class="p">;</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">align</span> <span class="o">=</span> <span class="s1">&#39;center&#39;</span><span class="p">;</span>
                            <span class="k">break</span><span class="p">;</span>
                        <span class="k">case</span> <span class="s1">&#39;padding&#39;</span><span class="o">:</span>
                            <span class="kd">var</span> <span class="nx">_button</span> <span class="o">=</span> <span class="nx">tbar</span><span class="p">.</span><span class="nx">getButtonById</span><span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">button</span><span class="p">.</span><span class="nx">id</span><span class="p">);</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">margin</span> <span class="o">=</span> <span class="nx">_button</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                            <span class="k">break</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="nx">tbar</span><span class="p">.</span><span class="nx">selectButton</span><span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">button</span><span class="p">.</span><span class="nx">value</span><span class="p">);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">value</span> <span class="o">!==</span> <span class="s1">&#39;padding&#39;</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">moveWindow</span><span class="p">();</span>
                    <span class="p">}</span>
                <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>



                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;localFileWarning&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_link&#39;</span><span class="p">,</span> <span class="s1">&#39;blur&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">url</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_link&#39;</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isLocalFile</span><span class="p">(</span><span class="nx">url</span><span class="p">.</span><span class="nx">value</span><span class="p">))</span> <span class="p">{</span>
                            <span class="c1">//Local File throw Warning</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">url</span><span class="p">,</span> <span class="s1">&#39;warning&#39;</span><span class="p">);</span>
                            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Local file reference found, show local warning&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">setFooter</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">STR_LOCAL_FILE_WARNING</span><span class="p">);</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="nx">url</span><span class="p">,</span> <span class="s1">&#39;warning&#39;</span><span class="p">);</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">setFooter</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span>
                            <span class="c1">//Adobe AIR Code</span>
                            <span class="k">if</span> <span class="p">((</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit3</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">air</span><span class="p">)</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">opera</span><span class="p">)</span> <span class="p">{</span>                
                                <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">setFooter</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_COPY</span><span class="p">);</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
                <span class="p">}</span>

                <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_url&#39;</span><span class="p">,</span> <span class="s1">&#39;blur&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">url</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_url&#39;</span><span class="p">),</span>
                        <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>

                    <span class="k">if</span> <span class="p">(</span><span class="nx">url</span><span class="p">.</span><span class="nx">value</span> <span class="o">&amp;&amp;</span> <span class="nx">el</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">url</span><span class="p">.</span><span class="nx">value</span> <span class="o">==</span> <span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;src&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">))</span> <span class="p">{</span>
                            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Images are the same, bail on blur handler&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
                            <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Images are different, process blur handler&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isLocalFile</span><span class="p">(</span><span class="nx">url</span><span class="p">.</span><span class="nx">value</span><span class="p">))</span> <span class="p">{</span>
                        <span class="c1">//Local File throw Warning</span>
                        <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">url</span><span class="p">,</span> <span class="s1">&#39;warning&#39;</span><span class="p">);</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Local file reference found, show local warning&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">setFooter</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">STR_LOCAL_FILE_WARNING</span><span class="p">);</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="p">{</span>
                        <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="nx">url</span><span class="p">,</span> <span class="s1">&#39;warning&#39;</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">setFooter</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span>
                        <span class="c1">//Adobe AIR Code</span>
                        <span class="k">if</span> <span class="p">((</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit3</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">air</span><span class="p">)</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">opera</span><span class="p">)</span> <span class="p">{</span>                
                            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">setFooter</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_COPY</span><span class="p">);</span>
                        <span class="p">}</span>
                        
                        <span class="k">if</span> <span class="p">(</span><span class="nx">url</span> <span class="o">&amp;&amp;</span> <span class="nx">url</span><span class="p">.</span><span class="nx">value</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">url</span><span class="p">.</span><span class="nx">value</span> <span class="o">!=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_HERE</span><span class="p">))</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;src&#39;</span><span class="p">,</span> <span class="nx">url</span><span class="p">.</span><span class="nx">value</span><span class="p">);</span>
                            <span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">,</span>
                                <span class="nx">img</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Image</span><span class="p">();</span>

                            <span class="nx">img</span><span class="p">.</span><span class="nx">onerror</span> <span class="o">=</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                                <span class="nx">url</span><span class="p">.</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">self</span><span class="p">.</span><span class="nx">STR_IMAGE_HERE</span><span class="p">;</span>
                                <span class="nx">img</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;src&#39;</span><span class="p">,</span> <span class="nx">self</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;blankimage&#39;</span><span class="p">));</span>
                                <span class="nx">self</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;src&#39;</span><span class="p">,</span> <span class="nx">self</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;blankimage&#39;</span><span class="p">));</span>
                                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_height&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">img</span><span class="p">.</span><span class="nx">height</span><span class="p">;</span>
                                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_width&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">img</span><span class="p">.</span><span class="nx">width</span><span class="p">;</span>
                            <span class="p">};</span>
                            <span class="kd">var</span> <span class="nx">id</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">);</span>
                            <span class="nb">window</span><span class="p">.</span><span class="nx">setTimeout</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_height&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">img</span><span class="p">.</span><span class="nx">height</span><span class="p">;</span>
                                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_width&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">img</span><span class="p">.</span><span class="nx">width</span><span class="p">;</span>
                                <span class="k">if</span> <span class="p">(</span><span class="nx">self</span><span class="p">.</span><span class="nx">currentElement</span> <span class="o">&amp;&amp;</span> <span class="nx">self</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="p">{</span>
                                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">self</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">_height</span><span class="p">)</span> <span class="p">{</span>
                                        <span class="nx">self</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">_height</span> <span class="o">=</span> <span class="nx">img</span><span class="p">.</span><span class="nx">height</span><span class="p">;</span>
                                    <span class="p">}</span>
                                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">self</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">_width</span><span class="p">)</span> <span class="p">{</span>
                                        <span class="nx">self</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">_width</span> <span class="o">=</span> <span class="nx">img</span><span class="p">.</span><span class="nx">width</span><span class="p">;</span>
                                    <span class="p">}</span>
                                <span class="p">}</span>
                                <span class="c1">//Removed moveWindow call so the window doesn&#39;t jump</span>
                                <span class="c1">//self.moveWindow();</span>
                            <span class="p">},</span> <span class="mi">800</span><span class="p">);</span> <span class="c1">//Bumped the timeout up to account for larger images..</span>

                            <span class="k">if</span> <span class="p">(</span><span class="nx">url</span><span class="p">.</span><span class="nx">value</span> <span class="o">!=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_HERE</span><span class="p">)</span> <span class="p">{</span>
                                <span class="nx">img</span><span class="p">.</span><span class="nx">src</span> <span class="o">=</span> <span class="nx">url</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span>
                            <span class="p">}</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>



                <span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">.</span><span class="nx">insertimage</span> <span class="o">=</span> <span class="p">{};</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">.</span><span class="nx">insertimage</span><span class="p">.</span><span class="nx">body</span> <span class="o">=</span> <span class="nx">body</span><span class="p">;</span>
                <span class="c1">//body.style.display = &#39;none&#39;;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">editor_form</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">body</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;windowInsertImageRender&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;windowInsertImageRender&#39;</span><span class="p">,</span> <span class="nx">panel</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">),</span> <span class="nx">body</span><span class="o">:</span> <span class="nx">body</span><span class="p">,</span> <span class="nx">toolbar</span><span class="o">:</span> <span class="nx">tbar</span> <span class="p">});</span>
                <span class="k">return</span> <span class="nx">body</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handleInsertImageClick</span>
<span class="cm">        * @description Opens the Image Properties Window when the insert Image button is clicked or an Image is Double Clicked.</span>
<span class="cm">        */</span>
        <span class="nx">_handleInsertImageClick</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;limitCommands&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">getButtonByValue</span><span class="p">(</span><span class="s1">&#39;insertimage&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Toolbar Button for (insertimage) was not found, skipping exec.&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
                    <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;afterExecCommand&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;afterExecCommand :: _handleInsertImageClick&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
                <span class="kd">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span>
                    <span class="nx">body</span> <span class="o">=</span> <span class="kc">null</span><span class="p">,</span>
                    <span class="nx">link</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
                    <span class="nx">target</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
                    <span class="nx">tbar</span> <span class="o">=</span> <span class="kc">null</span><span class="p">,</span>
                    <span class="nx">title</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
                    <span class="nx">src</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
                    <span class="nx">align</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">,</span>
                    <span class="nx">height</span> <span class="o">=</span> <span class="mi">75</span><span class="p">,</span>
                    <span class="nx">width</span> <span class="o">=</span> <span class="mi">75</span><span class="p">,</span>
                    <span class="nx">padding</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span>
                    <span class="nx">oheight</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span>
                    <span class="nx">owidth</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span>
                    <span class="nx">blankimage</span> <span class="o">=</span> <span class="kc">false</span><span class="p">,</span>
                    <span class="nx">win</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">EditorWindow</span><span class="p">(</span><span class="s1">&#39;insertimage&#39;</span><span class="p">,</span> <span class="p">{</span>
                        <span class="nx">width</span><span class="o">:</span> <span class="s1">&#39;415px&#39;</span>
                    <span class="p">});</span>

                <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">el</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getSelectedElement</span><span class="p">();</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">win</span><span class="p">.</span><span class="nx">el</span> <span class="o">=</span> <span class="nx">el</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;src&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">src</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;src&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">src</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;blankimage&#39;</span><span class="p">))</span> <span class="o">!=</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">src</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_HERE</span><span class="p">;</span>
                            <span class="nx">blankimage</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;alt&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">title</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;alt&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">title</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">);</span>
                    <span class="p">}</span>

                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">parentNode</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">,</span> <span class="s1">&#39;a&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">link</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;href&#39;</span><span class="p">,</span> <span class="mi">2</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;target&#39;</span><span class="p">)</span> <span class="o">!==</span> <span class="kc">null</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">target</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">getAttribute</span><span class="p">(</span><span class="s1">&#39;target&#39;</span><span class="p">);</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="nx">height</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="nx">width</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">height</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">height</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">width</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">width</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">margin</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">padding</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">margin</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">blankimage</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">el</span><span class="p">.</span><span class="nx">_height</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">_height</span> <span class="o">=</span> <span class="nx">height</span><span class="p">;</span>
                        <span class="p">}</span>
                        <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">el</span><span class="p">.</span><span class="nx">_width</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">el</span><span class="p">.</span><span class="nx">_width</span> <span class="o">=</span> <span class="nx">width</span><span class="p">;</span>
                        <span class="p">}</span>
                        <span class="nx">oheight</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">_height</span><span class="p">;</span>
                        <span class="nx">owidth</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">_width</span><span class="p">;</span>
                    <span class="p">}</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">.</span><span class="nx">insertimage</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">.</span><span class="nx">insertimage</span><span class="p">.</span><span class="nx">body</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">body</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">.</span><span class="nx">insertimage</span><span class="p">.</span><span class="nx">body</span><span class="p">;</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_defaultImageToolbar</span><span class="p">.</span><span class="nx">resetAllButtons</span><span class="p">();</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">body</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_renderInsertImageWindow</span><span class="p">();</span>
                <span class="p">}</span>

                <span class="nx">tbar</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_defaultImageToolbar</span><span class="p">;</span>
                <span class="nx">tbar</span><span class="p">.</span><span class="nx">editor_el</span> <span class="o">=</span> <span class="nx">el</span><span class="p">;</span>
                

                <span class="kd">var</span> <span class="nx">bsize</span> <span class="o">=</span> <span class="s1">&#39;0&#39;</span><span class="p">,</span>
                    <span class="nx">btype</span> <span class="o">=</span> <span class="s1">&#39;solid&#39;</span><span class="p">;</span>

                <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftWidth</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">bsize</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftWidth</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftStyle</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">btype</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderLeftStyle</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="kd">var</span> <span class="nx">bs_button</span> <span class="o">=</span> <span class="nx">tbar</span><span class="p">.</span><span class="nx">getButtonByValue</span><span class="p">(</span><span class="s1">&#39;bordersize&#39;</span><span class="p">),</span>
                    <span class="nx">bSizeStr</span> <span class="o">=</span> <span class="p">((</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">bsize</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="o">?</span> <span class="s1">&#39;&#39;</span> <span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_NONE</span><span class="p">);</span>
                <span class="nx">bs_button</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">,</span> <span class="s1">&#39;&lt;span class=&quot;yui-toolbar-bordersize-&#39;</span> <span class="o">+</span> <span class="nx">bsize</span> <span class="o">+</span> <span class="s1">&#39;&quot;&gt;&#39;</span> <span class="o">+</span> <span class="nx">bSizeStr</span> <span class="o">+</span> <span class="s1">&#39;&lt;/span&gt;&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_updateMenuChecked</span><span class="p">(</span><span class="s1">&#39;bordersize&#39;</span><span class="p">,</span> <span class="nx">bsize</span><span class="p">,</span> <span class="nx">tbar</span><span class="p">);</span>

                <span class="kd">var</span> <span class="nx">bt_button</span> <span class="o">=</span> <span class="nx">tbar</span><span class="p">.</span><span class="nx">getButtonByValue</span><span class="p">(</span><span class="s1">&#39;bordertype&#39;</span><span class="p">);</span>
                <span class="nx">bt_button</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">,</span> <span class="s1">&#39;&lt;span class=&quot;yui-toolbar-bordertype-&#39;</span> <span class="o">+</span> <span class="nx">btype</span> <span class="o">+</span> <span class="s1">&#39;&quot;&gt;asdfa&lt;/span&gt;&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_updateMenuChecked</span><span class="p">(</span><span class="s1">&#39;bordertype&#39;</span><span class="p">,</span> <span class="nx">btype</span><span class="p">,</span> <span class="nx">tbar</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">bsize</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">tbar</span><span class="p">.</span><span class="nx">enableButton</span><span class="p">(</span><span class="nx">bt_button</span><span class="p">);</span>
                    <span class="nx">tbar</span><span class="p">.</span><span class="nx">enableButton</span><span class="p">(</span><span class="nx">bs_button</span><span class="p">);</span>
                    <span class="nx">tbar</span><span class="p">.</span><span class="nx">enableButton</span><span class="p">(</span><span class="s1">&#39;bordercolor&#39;</span><span class="p">);</span>
                <span class="p">}</span>

                <span class="k">if</span> <span class="p">((</span><span class="nx">el</span><span class="p">.</span><span class="nx">align</span> <span class="o">==</span> <span class="s1">&#39;right&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">align</span> <span class="o">==</span> <span class="s1">&#39;left&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">tbar</span><span class="p">.</span><span class="nx">selectButton</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">align</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span> <span class="o">==</span> <span class="s1">&#39;block&#39;</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">tbar</span><span class="p">.</span><span class="nx">selectButton</span><span class="p">(</span><span class="s1">&#39;block&#39;</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">tbar</span><span class="p">.</span><span class="nx">selectButton</span><span class="p">(</span><span class="s1">&#39;inline&#39;</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">marginLeft</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">tbar</span><span class="p">.</span><span class="nx">getButtonByValue</span><span class="p">(</span><span class="s1">&#39;padding&#39;</span><span class="p">).</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="o">+</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">marginLeft</span><span class="p">,</span> <span class="mi">10</span><span class="p">));</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderSize</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">tbar</span><span class="p">.</span><span class="nx">selectButton</span><span class="p">(</span><span class="s1">&#39;bordersize&#39;</span><span class="p">);</span>
                    <span class="nx">tbar</span><span class="p">.</span><span class="nx">selectButton</span><span class="p">(</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">borderSize</span><span class="p">,</span> <span class="mi">10</span><span class="p">));</span>
                <span class="p">}</span>
                <span class="nx">tbar</span><span class="p">.</span><span class="nx">getButtonByValue</span><span class="p">(</span><span class="s1">&#39;padding&#39;</span><span class="p">).</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;label&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="o">+</span><span class="nx">padding</span><span class="p">);</span>



                <span class="nx">win</span><span class="p">.</span><span class="nx">setHeader</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_PROP_TITLE</span><span class="p">);</span>
                <span class="nx">win</span><span class="p">.</span><span class="nx">setBody</span><span class="p">(</span><span class="nx">body</span><span class="p">);</span>
                <span class="c1">//Adobe AIR Code</span>
                <span class="k">if</span> <span class="p">((</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit3</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">air</span><span class="p">)</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">opera</span><span class="p">)</span> <span class="p">{</span>                
                    <span class="nx">win</span><span class="p">.</span><span class="nx">setFooter</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_COPY</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">openWindow</span><span class="p">(</span><span class="nx">win</span><span class="p">);</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_url&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">src</span><span class="p">;</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_title&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">title</span><span class="p">;</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_link&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">link</span><span class="p">;</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_target&#39;</span><span class="p">).</span><span class="nx">checked</span> <span class="o">=</span> <span class="p">((</span><span class="nx">target</span><span class="p">)</span> <span class="o">?</span> <span class="kc">true</span> <span class="o">:</span> <span class="kc">false</span><span class="p">);</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_width&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">width</span><span class="p">;</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_height&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">height</span><span class="p">;</span>


                <span class="k">if</span> <span class="p">(((</span><span class="nx">height</span> <span class="o">!=</span> <span class="nx">oheight</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">width</span> <span class="o">!=</span> <span class="nx">owidth</span><span class="p">))</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="o">!</span><span class="nx">blankimage</span><span class="p">))</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">s</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;span&#39;</span><span class="p">);</span>
                    <span class="nx">s</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;info&#39;</span><span class="p">;</span>
                    <span class="nx">s</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_ORIG_SIZE</span> <span class="o">+</span> <span class="s1">&#39;: (&#39;</span><span class="o">+</span> <span class="nx">owidth</span> <span class="o">+</span><span class="s1">&#39; x &#39;</span> <span class="o">+</span> <span class="nx">oheight</span> <span class="o">+</span> <span class="s1">&#39;)&#39;</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_height&#39;</span><span class="p">).</span><span class="nx">nextSibling</span><span class="p">)</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">old</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_height&#39;</span><span class="p">).</span><span class="nx">nextSibling</span><span class="p">;</span>
                        <span class="nx">old</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="nx">old</span><span class="p">);</span>
                    <span class="p">}</span>
                    <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_height&#39;</span><span class="p">).</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">s</span><span class="p">);</span>
                <span class="p">}</span>

                <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">selectButton</span><span class="p">(</span><span class="s1">&#39;insertimage&#39;</span><span class="p">);</span>
                <span class="kd">var</span> <span class="nx">id</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">);</span>
                <span class="nb">window</span><span class="p">.</span><span class="nx">setTimeout</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                    <span class="k">try</span> <span class="p">{</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_url&#39;</span><span class="p">).</span><span class="nx">focus</span><span class="p">();</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">blankimage</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">id</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_url&#39;</span><span class="p">).</span><span class="nx">select</span><span class="p">();</span>
                        <span class="p">}</span>
                    <span class="p">}</span> <span class="k">catch</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{}</span>
                <span class="p">},</span> <span class="mi">50</span><span class="p">);</span>

            <span class="p">});</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _handleInsertImageWindowClose</span>
<span class="cm">        * @description Handles the closing of the Image Properties Window.</span>
<span class="cm">        */</span>
        <span class="nx">_handleInsertImageWindowClose</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">url</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_url&#39;</span><span class="p">),</span>
                <span class="nx">title</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_title&#39;</span><span class="p">),</span>
                <span class="nx">link</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_link&#39;</span><span class="p">),</span>
                <span class="nx">target</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_target&#39;</span><span class="p">),</span>
                <span class="nx">el</span> <span class="o">=</span> <span class="nx">arguments</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">win</span><span class="p">.</span><span class="nx">el</span><span class="p">;</span>

            <span class="k">if</span> <span class="p">(</span><span class="nx">url</span> <span class="o">&amp;&amp;</span> <span class="nx">url</span><span class="p">.</span><span class="nx">value</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">url</span><span class="p">.</span><span class="nx">value</span> <span class="o">!=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_IMAGE_HERE</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">el</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;src&#39;</span><span class="p">,</span> <span class="nx">url</span><span class="p">.</span><span class="nx">value</span><span class="p">);</span>
                <span class="nx">el</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">,</span> <span class="nx">title</span><span class="p">.</span><span class="nx">value</span><span class="p">);</span>
                <span class="nx">el</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;alt&#39;</span><span class="p">,</span> <span class="nx">title</span><span class="p">.</span><span class="nx">value</span><span class="p">);</span>
                <span class="kd">var</span> <span class="nx">par</span> <span class="o">=</span> <span class="nx">el</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">link</span><span class="p">.</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">urlValue</span> <span class="o">=</span> <span class="nx">link</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">((</span><span class="nx">urlValue</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="s1">&#39;:/&#39;</span><span class="o">+</span><span class="s1">&#39;/&#39;</span><span class="p">)</span> <span class="o">==</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">urlValue</span><span class="p">.</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">1</span><span class="p">)</span> <span class="o">!=</span> <span class="s1">&#39;/&#39;</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">urlValue</span><span class="p">.</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">6</span><span class="p">).</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">!=</span> <span class="s1">&#39;mailto&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">((</span><span class="nx">urlValue</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="s1">&#39;@&#39;</span><span class="p">)</span> <span class="o">!=</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">urlValue</span><span class="p">.</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">6</span><span class="p">).</span><span class="nx">toLowerCase</span><span class="p">()</span> <span class="o">!=</span> <span class="s1">&#39;mailto&#39;</span><span class="p">))</span> <span class="p">{</span>
                            <span class="c1">//Found an @ sign, prefix with mailto:</span>
                            <span class="nx">urlValue</span> <span class="o">=</span> <span class="s1">&#39;mailto:&#39;</span> <span class="o">+</span> <span class="nx">urlValue</span><span class="p">;</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="c1">// :// not found adding</span>
                            <span class="nx">urlValue</span> <span class="o">=</span> <span class="s1">&#39;http:/&#39;</span><span class="o">+</span><span class="s1">&#39;/&#39;</span> <span class="o">+</span> <span class="nx">urlValue</span><span class="p">;</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">par</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">par</span><span class="p">,</span> <span class="s1">&#39;a&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">par</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;href&#39;</span><span class="p">,</span> <span class="nx">urlValue</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">target</span><span class="p">.</span><span class="nx">checked</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">par</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;target&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="p">.</span><span class="nx">value</span><span class="p">);</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">par</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;target&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">);</span>
                        <span class="p">}</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="kd">var</span> <span class="nx">_a</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">().</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;a&#39;</span><span class="p">);</span>
                        <span class="nx">_a</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;href&#39;</span><span class="p">,</span> <span class="nx">urlValue</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">target</span><span class="p">.</span><span class="nx">checked</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">_a</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;target&#39;</span><span class="p">,</span> <span class="nx">target</span><span class="p">.</span><span class="nx">value</span><span class="p">);</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">_a</span><span class="p">.</span><span class="nx">setAttribute</span><span class="p">(</span><span class="s1">&#39;target&#39;</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">);</span>
                        <span class="p">}</span>
                        <span class="nx">el</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">replaceChild</span><span class="p">(</span><span class="nx">_a</span><span class="p">,</span> <span class="nx">el</span><span class="p">);</span>
                        <span class="nx">_a</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">el</span><span class="p">);</span>
                    <span class="p">}</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">par</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">par</span><span class="p">,</span> <span class="s1">&#39;a&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">par</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">replaceChild</span><span class="p">(</span><span class="nx">el</span><span class="p">,</span> <span class="nx">par</span><span class="p">);</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="c1">//No url/src given, remove the node from the document</span>
                <span class="nx">el</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="nx">el</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_url&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_title&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_link&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_target&#39;</span><span class="p">).</span><span class="nx">checked</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_width&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;_insertimage_height&#39;</span><span class="p">).</span><span class="nx">value</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_defaultImageToolbar</span><span class="p">.</span><span class="nx">resetAllButtons</span><span class="p">();</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span> <span class="o">=</span> <span class="p">[];</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">nodeChange</span><span class="p">();</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @property EDITOR_PANEL_ID</span>
<span class="cm">        * @description HTML id to give the properties window in the DOM.</span>
<span class="cm">        * @type String</span>
<span class="cm">        */</span>
        <span class="nx">EDITOR_PANEL_ID</span><span class="o">:</span> <span class="s1">&#39;-panel&#39;</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _renderPanel</span>
<span class="cm">        * @description Renders the panel used for Editor Windows to the document so we can start using it..</span>
<span class="cm">        * @return {&lt;a href=&quot;YAHOO.widget.Overlay.html&quot;&gt;YAHOO.widget.Overlay&lt;/a&gt;}</span>
<span class="cm">        */</span>
        <span class="nx">_renderPanel</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">panelEl</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">panelEl</span><span class="p">,</span> <span class="s1">&#39;yui-editor-panel&#39;</span><span class="p">);</span>
            <span class="nx">panelEl</span><span class="p">.</span><span class="nx">id</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">EDITOR_PANEL_ID</span><span class="p">;</span>
            <span class="nx">panelEl</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">position</span> <span class="o">=</span> <span class="s1">&#39;absolute&#39;</span><span class="p">;</span>
            <span class="nx">panelEl</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">top</span> <span class="o">=</span> <span class="s1">&#39;-9999px&#39;</span><span class="p">;</span>
            <span class="nx">panelEl</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">left</span> <span class="o">=</span> <span class="s1">&#39;-9999px&#39;</span><span class="p">;</span>
            <span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">panelEl</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element_cont&#39;</span><span class="p">).</span><span class="nx">insertBefore</span><span class="p">(</span><span class="nx">panelEl</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element_cont&#39;</span><span class="p">).</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;firstChild&#39;</span><span class="p">));</span>

                

            <span class="kd">var</span> <span class="nx">panel</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Overlay</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">EDITOR_PANEL_ID</span><span class="p">,</span> <span class="p">{</span>
                    <span class="nx">width</span><span class="o">:</span> <span class="s1">&#39;300px&#39;</span><span class="p">,</span>
                    <span class="nx">iframe</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
                    <span class="nx">visible</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
                    <span class="nx">underlay</span><span class="o">:</span> <span class="s1">&#39;none&#39;</span><span class="p">,</span>
                    <span class="nx">draggable</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
                    <span class="nx">close</span><span class="o">:</span> <span class="kc">false</span>
                <span class="p">});</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">,</span> <span class="nx">panel</span><span class="p">);</span>

            <span class="nx">panel</span><span class="p">.</span><span class="nx">setBody</span><span class="p">(</span><span class="s1">&#39;---&#39;</span><span class="p">);</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">setHeader</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">setFooter</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span>


            <span class="kd">var</span> <span class="nx">body</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
            <span class="nx">body</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_PREFIX</span> <span class="o">+</span> <span class="s1">&#39;-body-cont&#39;</span><span class="p">;</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">b</span> <span class="k">in</span> <span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">[</span><span class="nx">b</span><span class="p">])</span> <span class="p">{</span>
                    <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">body</span><span class="p">,</span> <span class="nx">b</span><span class="p">);</span>
                    <span class="k">break</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">body</span><span class="p">,</span> <span class="p">((</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">Button</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_defaultToolbar</span><span class="p">.</span><span class="nx">buttonType</span> <span class="o">==</span> <span class="s1">&#39;advanced&#39;</span><span class="p">))</span> <span class="o">?</span> <span class="s1">&#39;good-button&#39;</span> <span class="o">:</span> <span class="s1">&#39;no-button&#39;</span><span class="p">));</span>

            <span class="kd">var</span> <span class="nx">_note</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;h3&#39;</span><span class="p">);</span>
            <span class="nx">_note</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;yui-editor-skipheader&#39;</span><span class="p">;</span>
            <span class="nx">_note</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_CLOSE_WINDOW_NOTE</span><span class="p">;</span>
            <span class="nx">body</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">_note</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">form</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;fieldset&#39;</span><span class="p">);</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">editor_form</span> <span class="o">=</span> <span class="nx">form</span><span class="p">;</span>

            <span class="nx">body</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">form</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">_close</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;span&#39;</span><span class="p">);</span>
            <span class="nx">_close</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;X&#39;</span><span class="p">;</span>
            <span class="nx">_close</span><span class="p">.</span><span class="nx">title</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_CLOSE_WINDOW</span><span class="p">;</span>
            <span class="nx">_close</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;close&#39;</span><span class="p">;</span>
            
            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">_close</span><span class="p">,</span> <span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">closeWindow</span><span class="p">,</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>

            <span class="kd">var</span> <span class="nx">_knob</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;span&#39;</span><span class="p">);</span>
            <span class="nx">_knob</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;^&#39;</span><span class="p">;</span>
            <span class="nx">_knob</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;knob&#39;</span><span class="p">;</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">editor_knob</span> <span class="o">=</span> <span class="nx">_knob</span><span class="p">;</span>

            <span class="kd">var</span> <span class="nx">_header</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;h3&#39;</span><span class="p">);</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">editor_header</span> <span class="o">=</span> <span class="nx">_header</span><span class="p">;</span>
            <span class="nx">_header</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;&lt;span&gt;&lt;/span&gt;&#39;</span><span class="p">;</span>

            <span class="nx">panel</span><span class="p">.</span><span class="nx">setHeader</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span> <span class="c1">//Clear the current header</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">appendToHeader</span><span class="p">(</span><span class="nx">_header</span><span class="p">);</span>
            <span class="nx">_header</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">_close</span><span class="p">);</span>
            <span class="nx">_header</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">_knob</span><span class="p">);</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">setBody</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span> <span class="c1">//Clear the current body</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">setFooter</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span> <span class="c1">//Clear the current footer</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">appendToBody</span><span class="p">(</span><span class="nx">body</span><span class="p">);</span> <span class="c1">//Append the new DOM node to it</span>

            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">panel</span><span class="p">.</span><span class="nx">element</span><span class="p">,</span> <span class="s1">&#39;click&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">stopPropagation</span><span class="p">(</span><span class="nx">ev</span><span class="p">);</span>
            <span class="p">});</span>

            <span class="kd">var</span> <span class="nx">fireShowEvent</span> <span class="o">=</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="nx">panel</span><span class="p">.</span><span class="nx">bringToTop</span><span class="p">();</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">element</span><span class="p">,</span> <span class="s1">&#39;display&#39;</span><span class="p">,</span> <span class="s1">&#39;block&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_handleWindowInputs</span><span class="p">(</span><span class="kc">false</span><span class="p">);</span>
            <span class="p">};</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">showEvent</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="nx">fireShowEvent</span><span class="p">,</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">hideEvent</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_handleWindowInputs</span><span class="p">(</span><span class="kc">true</span><span class="p">);</span>
            <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">renderEvent</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_renderInsertImageWindow</span><span class="p">();</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_renderCreateLinkWindow</span><span class="p">();</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;windowRender&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;windowRender&#39;</span><span class="p">,</span> <span class="nx">panel</span><span class="o">:</span> <span class="nx">panel</span> <span class="p">});</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_handleWindowInputs</span><span class="p">(</span><span class="kc">true</span><span class="p">);</span>
            <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>

            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">DOMReady</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">render</span><span class="p">();</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="nx">Event</span><span class="p">.</span><span class="nx">onDOMReady</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">render</span><span class="p">();</span>
                <span class="p">},</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">);</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method _handleWindowInputs</span>
<span class="cm">        * @param {Boolean} disable The state to set all inputs in all Editor windows to. Defaults to: false.</span>
<span class="cm">        * @description Disables/Enables all fields inside Editor windows. Used in show/hide events to keep window fields from submitting when the parent form is submitted.</span>
<span class="cm">        */</span>
        <span class="nx">_handleWindowInputs</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">disable</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isBoolean</span><span class="p">(</span><span class="nx">disable</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">disable</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">inputs</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">element</span><span class="p">.</span><span class="nx">getElementsByTagName</span><span class="p">(</span><span class="s1">&#39;input&#39;</span><span class="p">);</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">inputs</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">try</span> <span class="p">{</span>
                    <span class="nx">inputs</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">disabled</span> <span class="o">=</span> <span class="nx">disable</span><span class="p">;</span>
                <span class="p">}</span> <span class="k">catch</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{}</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method openWindow</span>
<span class="cm">        * @param {&lt;a href=&quot;YAHOO.widget.EditorWindow.html&quot;&gt;YAHOO.widget.EditorWindow&lt;/a&gt;} win A &lt;a href=&quot;YAHOO.widget.EditorWindow.html&quot;&gt;YAHOO.widget.EditorWindow&lt;/a&gt; instance</span>
<span class="cm">        * @description Opens a new &quot;window/panel&quot;</span>
<span class="cm">        */</span>
        <span class="nx">openWindow</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">win</span><span class="p">)</span> <span class="p">{</span>
            
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;openWindow: &#39;</span> <span class="o">+</span> <span class="nx">win</span><span class="p">.</span><span class="nx">name</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">self</span> <span class="o">=</span> <span class="k">this</span><span class="p">;</span>
            <span class="nb">window</span><span class="p">.</span><span class="nx">setTimeout</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                <span class="nx">self</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span> <span class="c1">//Disable the toolbar when an editor window is open..</span>
            <span class="p">},</span> <span class="mi">10</span><span class="p">);</span>
            <span class="nx">Event</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nb">document</span><span class="p">,</span> <span class="s1">&#39;keydown&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_closeWindow</span><span class="p">,</span> <span class="k">this</span><span class="p">,</span> <span class="kc">true</span><span class="p">);</span>
            
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentWindow</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">closeWindow</span><span class="p">();</span>
            <span class="p">}</span>
            
            <span class="kd">var</span> <span class="nx">xy</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">getXY</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">]),</span>
            <span class="nx">elXY</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">getXY</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;iframe&#39;</span><span class="p">).</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">)),</span>
            <span class="nx">panel</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">),</span>
            <span class="nx">newXY</span> <span class="o">=</span> <span class="p">[(</span><span class="nx">xy</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span> <span class="nx">elXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">-</span> <span class="mi">20</span><span class="p">),</span> <span class="p">(</span><span class="nx">xy</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="nx">elXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="mi">10</span><span class="p">)],</span>
            <span class="nx">wWidth</span> <span class="o">=</span> <span class="p">(</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">win</span><span class="p">.</span><span class="nx">attrs</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">/</span> <span class="mi">2</span><span class="p">),</span>
            <span class="nx">align</span> <span class="o">=</span> <span class="s1">&#39;center&#39;</span><span class="p">,</span>
            <span class="nx">body</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>

            <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;beforeOpenWindow&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;beforeOpenWindow&#39;</span><span class="p">,</span> <span class="nx">win</span><span class="o">:</span> <span class="nx">win</span><span class="p">,</span> <span class="nx">panel</span><span class="o">:</span> <span class="nx">panel</span> <span class="p">});</span>

            <span class="kd">var</span> <span class="nx">form</span> <span class="o">=</span> <span class="nx">panel</span><span class="p">.</span><span class="nx">editor_form</span><span class="p">;</span>
            
            <span class="kd">var</span> <span class="nx">wins</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">;</span>
            <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">b</span> <span class="k">in</span> <span class="nx">wins</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">hasOwnProperty</span><span class="p">(</span><span class="nx">wins</span><span class="p">,</span> <span class="nx">b</span><span class="p">))</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">wins</span><span class="p">[</span><span class="nx">b</span><span class="p">]</span> <span class="o">&amp;&amp;</span> <span class="nx">wins</span><span class="p">[</span><span class="nx">b</span><span class="p">].</span><span class="nx">body</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">b</span> <span class="o">==</span> <span class="nx">win</span><span class="p">.</span><span class="nx">name</span><span class="p">)</span> <span class="p">{</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="nx">wins</span><span class="p">[</span><span class="nx">b</span><span class="p">].</span><span class="nx">body</span><span class="p">,</span> <span class="s1">&#39;display&#39;</span><span class="p">,</span> <span class="s1">&#39;block&#39;</span><span class="p">);</span>
                        <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                            <span class="nx">Dom</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="nx">wins</span><span class="p">[</span><span class="nx">b</span><span class="p">].</span><span class="nx">body</span><span class="p">,</span> <span class="s1">&#39;display&#39;</span><span class="p">,</span> <span class="s1">&#39;none&#39;</span><span class="p">);</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
            
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">[</span><span class="nx">win</span><span class="p">.</span><span class="nx">name</span><span class="p">].</span><span class="nx">body</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">[</span><span class="nx">win</span><span class="p">.</span><span class="nx">name</span><span class="p">].</span><span class="nx">body</span><span class="p">,</span> <span class="s1">&#39;display&#39;</span><span class="p">,</span> <span class="s1">&#39;block&#39;</span><span class="p">);</span>
                <span class="nx">form</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_windows</span><span class="p">[</span><span class="nx">win</span><span class="p">.</span><span class="nx">name</span><span class="p">].</span><span class="nx">body</span><span class="p">);</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isObject</span><span class="p">(</span><span class="nx">win</span><span class="p">.</span><span class="nx">body</span><span class="p">))</span> <span class="p">{</span> <span class="c1">//Assume it&#39;s a reference</span>
                    <span class="nx">form</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">win</span><span class="p">.</span><span class="nx">body</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span> <span class="c1">//Assume it&#39;s a string</span>
                    <span class="kd">var</span> <span class="nx">_tmp</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span>
                    <span class="nx">_tmp</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">win</span><span class="p">.</span><span class="nx">body</span><span class="p">;</span>
                    <span class="nx">form</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">_tmp</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">editor_header</span><span class="p">.</span><span class="nx">firstChild</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">win</span><span class="p">.</span><span class="nx">header</span><span class="p">;</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">win</span><span class="p">.</span><span class="nx">footer</span> <span class="o">!==</span> <span class="kc">null</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">panel</span><span class="p">.</span><span class="nx">setFooter</span><span class="p">(</span><span class="nx">win</span><span class="p">.</span><span class="nx">footer</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">setProperty</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">,</span> <span class="nx">win</span><span class="p">.</span><span class="nx">attrs</span><span class="p">.</span><span class="nx">width</span><span class="p">);</span>

            <span class="k">this</span><span class="p">.</span><span class="nx">currentWindow</span> <span class="o">=</span> <span class="nx">win</span><span class="p">;</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">moveWindow</span><span class="p">(</span><span class="kc">true</span><span class="p">);</span>
            <span class="nx">panel</span><span class="p">.</span><span class="nx">show</span><span class="p">();</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;afterOpenWindow&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;afterOpenWindow&#39;</span><span class="p">,</span> <span class="nx">win</span><span class="o">:</span> <span class="nx">win</span><span class="p">,</span> <span class="nx">panel</span><span class="o">:</span> <span class="nx">panel</span> <span class="p">});</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method moveWindow</span>
<span class="cm">        * @param {Boolean} force Boolean to tell it to move but not use any animation (Usually done the first time the window is loaded.)</span>
<span class="cm">        * @description Realign the window with the currentElement and reposition the knob above the panel.</span>
<span class="cm">        */</span>
        <span class="nx">moveWindow</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">force</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">currentWindow</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">return</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="kd">var</span> <span class="nx">win</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentWindow</span><span class="p">,</span>
                <span class="nx">xy</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">getXY</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">]),</span>
                <span class="nx">elXY</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">getXY</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;iframe&#39;</span><span class="p">).</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">)),</span>
                <span class="nx">panel</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">),</span>
                <span class="c1">//newXY = [(xy[0] + elXY[0] - 20), (xy[1] + elXY[1] + 10)],</span>
                <span class="nx">newXY</span> <span class="o">=</span> <span class="p">[(</span><span class="nx">xy</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span> <span class="nx">elXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]),</span> <span class="p">(</span><span class="nx">xy</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="nx">elXY</span><span class="p">[</span><span class="mi">1</span><span class="p">])],</span>
                <span class="nx">wWidth</span> <span class="o">=</span> <span class="p">(</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">win</span><span class="p">.</span><span class="nx">attrs</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">/</span> <span class="mi">2</span><span class="p">),</span>
                <span class="nx">align</span> <span class="o">=</span> <span class="s1">&#39;center&#39;</span><span class="p">,</span>
                <span class="nx">orgXY</span> <span class="o">=</span> <span class="nx">panel</span><span class="p">.</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">getProperty</span><span class="p">(</span><span class="s1">&#39;xy&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span><span class="mi">0</span><span class="p">],</span>
                <span class="nx">_knob</span> <span class="o">=</span> <span class="nx">panel</span><span class="p">.</span><span class="nx">editor_knob</span><span class="p">,</span>
                <span class="nx">xDiff</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span>
                <span class="nx">yDiff</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span>
                <span class="nx">anim</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>


            <span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="p">((</span><span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">-</span> <span class="nx">wWidth</span><span class="p">)</span> <span class="o">+</span> <span class="mi">20</span><span class="p">);</span>
            <span class="c1">//Account for the Scroll bars in a scrolled editor window.</span>
            <span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">-</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">getDocumentScrollLeft</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">());</span>
            <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">-</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">getDocumentScrollTop</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">());</span>
            
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="s1">&#39;img&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">src</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;blankimage&#39;</span><span class="p">))</span> <span class="o">!=</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span> <span class="p">(</span><span class="mi">75</span> <span class="o">/</span> <span class="mi">2</span><span class="p">));</span> <span class="c1">//Placeholder size</span>
                    <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="mi">75</span><span class="p">);</span> <span class="c1">//Placeholder sizea</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">w</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">width</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="kd">var</span> <span class="nx">h</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">height</span><span class="p">,</span> <span class="mi">10</span><span class="p">);</span>
                    <span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span> <span class="p">(</span><span class="nx">w</span> <span class="o">/</span> <span class="mi">2</span><span class="p">));</span>
                    <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="nx">h</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="mi">15</span><span class="p">;</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">fs</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="s1">&#39;fontSize&#39;</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">fs</span> <span class="o">&amp;&amp;</span> <span class="nx">fs</span><span class="p">.</span><span class="nx">indexOf</span> <span class="o">&amp;&amp;</span> <span class="nx">fs</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="s1">&#39;px&#39;</span><span class="p">)</span> <span class="o">!=</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">getStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="s1">&#39;fontSize&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">)</span> <span class="o">+</span> <span class="mi">5</span><span class="p">;</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="mi">20</span><span class="p">;</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">&lt;</span> <span class="nx">elXY</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="p">{</span>
                <span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="nx">elXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span> <span class="mi">5</span><span class="p">;</span>
                <span class="nx">align</span> <span class="o">=</span> <span class="s1">&#39;left&#39;</span><span class="p">;</span>
            <span class="p">}</span>

            <span class="k">if</span> <span class="p">((</span><span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span> <span class="p">(</span><span class="nx">wWidth</span> <span class="o">*</span> <span class="mi">2</span><span class="p">))</span> <span class="o">&gt;</span> <span class="p">(</span><span class="nx">elXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;iframe&#39;</span><span class="p">).</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">clientWidth</span><span class="p">,</span> <span class="mi">10</span><span class="p">)))</span> <span class="p">{</span>
                <span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="p">((</span><span class="nx">elXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;iframe&#39;</span><span class="p">).</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element&#39;</span><span class="p">).</span><span class="nx">clientWidth</span><span class="p">,</span> <span class="mi">10</span><span class="p">))</span> <span class="o">-</span> <span class="p">(</span><span class="nx">wWidth</span> <span class="o">*</span> <span class="mi">2</span><span class="p">)</span> <span class="o">-</span> <span class="mi">5</span><span class="p">);</span>
                <span class="nx">align</span> <span class="o">=</span> <span class="s1">&#39;right&#39;</span><span class="p">;</span>
            <span class="p">}</span>
            
            <span class="k">try</span> <span class="p">{</span>
                <span class="nx">xDiff</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">-</span> <span class="nx">orgXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
                <span class="nx">yDiff</span> <span class="o">=</span> <span class="p">(</span><span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">-</span> <span class="nx">orgXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span>
            <span class="p">}</span> <span class="k">catch</span> <span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{}</span>


            <span class="kd">var</span> <span class="nx">iTop</span> <span class="o">=</span> <span class="nx">elXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">+</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">);</span>
            <span class="kd">var</span> <span class="nx">iLeft</span> <span class="o">=</span> <span class="nx">elXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span> <span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;width&#39;</span><span class="p">),</span> <span class="mi">10</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">&gt;</span> <span class="nx">iTop</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="nx">iTop</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">&gt;</span> <span class="nx">iLeft</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="nx">iLeft</span> <span class="o">/</span> <span class="mi">2</span><span class="p">);</span>
            <span class="p">}</span>
            
            <span class="c1">//Convert negative numbers to positive so we can get the difference in distance</span>
            <span class="nx">xDiff</span> <span class="o">=</span> <span class="p">((</span><span class="nx">xDiff</span> <span class="o">&lt;</span> <span class="mi">0</span><span class="p">)</span> <span class="o">?</span> <span class="p">(</span><span class="nx">xDiff</span> <span class="o">*</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="o">:</span> <span class="nx">xDiff</span><span class="p">);</span>
            <span class="nx">yDiff</span> <span class="o">=</span> <span class="p">((</span><span class="nx">yDiff</span> <span class="o">&lt;</span> <span class="mi">0</span><span class="p">)</span> <span class="o">?</span> <span class="p">(</span><span class="nx">yDiff</span> <span class="o">*</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="o">:</span> <span class="nx">yDiff</span><span class="p">);</span>

            <span class="k">if</span> <span class="p">(((</span><span class="nx">xDiff</span> <span class="o">&gt;</span> <span class="mi">10</span><span class="p">)</span> <span class="o">||</span> <span class="p">(</span><span class="nx">yDiff</span> <span class="o">&gt;</span> <span class="mi">10</span><span class="p">))</span> <span class="o">||</span> <span class="nx">force</span><span class="p">)</span> <span class="p">{</span> <span class="c1">//Only move the window if it&#39;s supposed to move more than 10px or force was passed (new window)</span>
                <span class="kd">var</span> <span class="nx">_knobLeft</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span>
                    <span class="nx">elW</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>

                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">width</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">elW</span> <span class="o">=</span> <span class="p">(</span><span class="nb">parseInt</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">width</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">/</span> <span class="mi">2</span><span class="p">);</span>
                <span class="p">}</span>

                <span class="kd">var</span> <span class="nx">leftOffset</span> <span class="o">=</span> <span class="nx">xy</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span> <span class="nx">elXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">+</span> <span class="nx">elW</span><span class="p">;</span>
                <span class="nx">_knobLeft</span> <span class="o">=</span> <span class="nx">leftOffset</span> <span class="o">-</span> <span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
                <span class="c1">//Check to see if the knob will go off either side &amp; reposition it</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">_knobLeft</span> <span class="o">&gt;</span> <span class="p">(</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">win</span><span class="p">.</span><span class="nx">attrs</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">_knobLeft</span> <span class="o">=</span> <span class="p">((</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">win</span><span class="p">.</span><span class="nx">attrs</span><span class="p">.</span><span class="nx">width</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span> <span class="o">-</span> <span class="mi">30</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">_knobLeft</span> <span class="o">&lt;</span> <span class="mi">40</span><span class="p">)</span> <span class="p">{</span>
                    <span class="nx">_knobLeft</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="nb">isNaN</span><span class="p">(</span><span class="nx">_knobLeft</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">_knobLeft</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="k">if</span> <span class="p">(</span><span class="nx">force</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">_knob</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">_knob</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">left</span> <span class="o">=</span> <span class="nx">_knobLeft</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="c1">//Removed Animation from a forced move..</span>
                    <span class="nx">panel</span><span class="p">.</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">setProperty</span><span class="p">(</span><span class="s1">&#39;xy&#39;</span><span class="p">,</span> <span class="nx">newXY</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;animate&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">anim</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Anim</span><span class="p">(</span><span class="nx">panel</span><span class="p">.</span><span class="nx">element</span><span class="p">,</span> <span class="p">{},</span> <span class="mf">0.5</span><span class="p">,</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Easing</span><span class="p">.</span><span class="nx">easeOut</span><span class="p">);</span>
                        <span class="nx">anim</span><span class="p">.</span><span class="nx">attributes</span> <span class="o">=</span> <span class="p">{</span>
                            <span class="nx">top</span><span class="o">:</span> <span class="p">{</span>
                                <span class="nx">to</span><span class="o">:</span> <span class="nx">newXY</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span>
                            <span class="p">},</span>
                            <span class="nx">left</span><span class="o">:</span> <span class="p">{</span>
                                <span class="nx">to</span><span class="o">:</span> <span class="nx">newXY</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
                            <span class="p">}</span>
                        <span class="p">};</span>
                        <span class="nx">anim</span><span class="p">.</span><span class="nx">onComplete</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
                            <span class="nx">panel</span><span class="p">.</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">setProperty</span><span class="p">(</span><span class="s1">&#39;xy&#39;</span><span class="p">,</span> <span class="nx">newXY</span><span class="p">);</span>
                        <span class="p">});</span>
                        <span class="c1">//We have to animate the iframe shim at the same time as the panel or we get scrollbar bleed ..</span>
                        <span class="kd">var</span> <span class="nx">iframeAnim</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Anim</span><span class="p">(</span><span class="nx">panel</span><span class="p">.</span><span class="nx">iframe</span><span class="p">,</span> <span class="nx">anim</span><span class="p">.</span><span class="nx">attributes</span><span class="p">,</span> <span class="mf">0.5</span><span class="p">,</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Easing</span><span class="p">.</span><span class="nx">easeOut</span><span class="p">);</span>

                        <span class="kd">var</span> <span class="nx">_knobAnim</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Anim</span><span class="p">(</span><span class="nx">_knob</span><span class="p">,</span> <span class="p">{</span>
                            <span class="nx">left</span><span class="o">:</span> <span class="p">{</span>
                                <span class="nx">to</span><span class="o">:</span> <span class="nx">_knobLeft</span>
                            <span class="p">}</span>
                        <span class="p">},</span> <span class="mf">0.6</span><span class="p">,</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Easing</span><span class="p">.</span><span class="nx">easeOut</span><span class="p">);</span>
                        <span class="nx">anim</span><span class="p">.</span><span class="nx">animate</span><span class="p">();</span>
                        <span class="nx">iframeAnim</span><span class="p">.</span><span class="nx">animate</span><span class="p">();</span>
                        <span class="nx">_knobAnim</span><span class="p">.</span><span class="nx">animate</span><span class="p">();</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="nx">_knob</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">left</span> <span class="o">=</span> <span class="nx">_knobLeft</span> <span class="o">+</span> <span class="s1">&#39;px&#39;</span><span class="p">;</span>
                        <span class="nx">panel</span><span class="p">.</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">setProperty</span><span class="p">(</span><span class="s1">&#39;xy&#39;</span><span class="p">,</span> <span class="nx">newXY</span><span class="p">);</span>
                    <span class="p">}</span>
                <span class="p">}</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @method _closeWindow</span>
<span class="cm">        * @description Close the currently open EditorWindow with the Escape key.</span>
<span class="cm">        * @param {Event} ev The keypress Event that we are trapping</span>
<span class="cm">        */</span>
        <span class="nx">_closeWindow</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">ev</span><span class="p">)</span> <span class="p">{</span>
            <span class="c1">//if ((ev.charCode == 87) &amp;&amp; ev.shiftKey &amp;&amp; ev.ctrlKey) {</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_checkKey</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_keyMap</span><span class="p">.</span><span class="nx">CLOSE_WINDOW</span><span class="p">,</span> <span class="nx">ev</span><span class="p">))</span> <span class="p">{</span>            
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentWindow</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">closeWindow</span><span class="p">();</span>
                <span class="p">}</span>
            <span class="p">}</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method closeWindow</span>
<span class="cm">        * @description Close the currently open EditorWindow.</span>
<span class="cm">        */</span>
        <span class="nx">closeWindow</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">keepOpen</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;closeWindow: &#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentWindow</span><span class="p">.</span><span class="nx">name</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;window&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentWindow</span><span class="p">.</span><span class="nx">name</span> <span class="o">+</span> <span class="s1">&#39;Close&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;window&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentWindow</span><span class="p">.</span><span class="nx">name</span> <span class="o">+</span> <span class="s1">&#39;Close&#39;</span><span class="p">,</span> <span class="nx">win</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentWindow</span><span class="p">,</span> <span class="nx">el</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="p">});</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">fireEvent</span><span class="p">(</span><span class="s1">&#39;closeWindow&#39;</span><span class="p">,</span> <span class="p">{</span> <span class="nx">type</span><span class="o">:</span> <span class="s1">&#39;closeWindow&#39;</span><span class="p">,</span> <span class="nx">win</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentWindow</span> <span class="p">});</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">currentWindow</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">hide</span><span class="p">();</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">cfg</span><span class="p">.</span><span class="nx">setProperty</span><span class="p">(</span><span class="s1">&#39;xy&#39;</span><span class="p">,</span> <span class="p">[</span><span class="o">-</span><span class="mi">900</span><span class="p">,</span><span class="o">-</span><span class="mi">900</span><span class="p">]);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;panel&#39;</span><span class="p">).</span><span class="nx">syncIframe</span><span class="p">();</span> <span class="c1">//Needed to move the iframe with the hidden panel</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">unsubscribeAll</span><span class="p">(</span><span class="s1">&#39;afterExecCommand&#39;</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">,</span> <span class="kc">false</span><span class="p">);</span> <span class="c1">//enable the toolbar now that the window is closed</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">resetAllButtons</span><span class="p">();</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">focus</span><span class="p">();</span>
            <span class="nx">Event</span><span class="p">.</span><span class="nx">removeListener</span><span class="p">(</span><span class="nb">document</span><span class="p">,</span> <span class="s1">&#39;keydown&#39;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_closeWindow</span><span class="p">);</span>
        <span class="p">},</span>

        <span class="cm">/* {{{  Command Overrides - These commands are only over written when we are using the advanced version */</span>
        
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_undo</span>
<span class="cm">        * @description Pulls an item from the Undo stack and updates the Editor</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        */</span>
        <span class="nx">cmd_undo</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_hasUndoLevel</span><span class="p">())</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">c_html</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getEditorHTML</span><span class="p">(),</span> <span class="nx">html</span><span class="p">;</span>
                <span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">-</span> <span class="mi">1</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span><span class="p">])</span> <span class="p">{</span>
                    <span class="nx">html</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getUndo</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span><span class="p">);</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">html</span> <span class="o">!=</span> <span class="nx">c_html</span><span class="p">)</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">setEditorHTML</span><span class="p">(</span><span class="nx">html</span><span class="p">);</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">=</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">-</span> <span class="mi">1</span><span class="p">);</span>
                        <span class="nx">html</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getUndo</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span><span class="p">);</span>
                        <span class="k">if</span> <span class="p">(</span><span class="nx">html</span> <span class="o">!=</span> <span class="nx">c_html</span><span class="p">)</span> <span class="p">{</span>
                            <span class="k">this</span><span class="p">.</span><span class="nx">setEditorHTML</span><span class="p">(</span><span class="nx">html</span><span class="p">);</span>
                        <span class="p">}</span>
                    <span class="p">}</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">disableButton</span><span class="p">(</span><span class="s1">&#39;undo&#39;</span><span class="p">);</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="p">[</span><span class="kc">false</span><span class="p">];</span>
        <span class="p">},</span>

        <span class="cm">/**</span>
<span class="cm">        * @method cmd_redo</span>
<span class="cm">        * @description Pulls an item from the Undo stack and updates the Editor</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        */</span>
        <span class="nx">cmd_redo</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">+</span> <span class="mi">1</span><span class="p">;</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">&gt;=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">.</span><span class="nx">length</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span> <span class="o">+</span> <span class="s1">&#39; :: &#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">.</span><span class="nx">length</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;SimpleEditor&#39;</span><span class="p">);</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoCache</span><span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span><span class="p">])</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">html</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getUndo</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_undoLevel</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">setEditorHTML</span><span class="p">(</span><span class="nx">html</span><span class="p">);</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">disableButton</span><span class="p">(</span><span class="s1">&#39;redo&#39;</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="p">[</span><span class="kc">false</span><span class="p">];</span>
        <span class="p">},</span>       
        
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_heading</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        * @description This is an execCommand override method. It is called from execCommand when the execCommand(&#39;heading&#39;) is used.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_heading</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">exec</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span>
                <span class="nx">el</span> <span class="o">=</span> <span class="kc">null</span><span class="p">,</span>
                <span class="nx">action</span> <span class="o">=</span> <span class="s1">&#39;heading&#39;</span><span class="p">,</span>
                <span class="nx">_sel</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getSelection</span><span class="p">(),</span>
                <span class="nx">_selEl</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getSelectedElement</span><span class="p">();</span>

            <span class="k">if</span> <span class="p">(</span><span class="nx">_selEl</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">_sel</span> <span class="o">=</span> <span class="nx">_selEl</span><span class="p">;</span>
            <span class="p">}</span>
            
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">ie</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">action</span> <span class="o">=</span> <span class="s1">&#39;formatblock&#39;</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">if</span> <span class="p">(</span><span class="nx">value</span> <span class="o">==</span> <span class="k">this</span><span class="p">.</span><span class="nx">STR_NONE</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">((</span><span class="nx">_sel</span> <span class="o">&amp;&amp;</span> <span class="nx">_sel</span><span class="p">.</span><span class="nx">tagName</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">_sel</span><span class="p">.</span><span class="nx">tagName</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">().</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">1</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;h&#39;</span><span class="p">))</span> <span class="o">||</span> <span class="p">(</span><span class="nx">_sel</span> <span class="o">&amp;&amp;</span> <span class="nx">_sel</span><span class="p">.</span><span class="nx">parentNode</span> <span class="o">&amp;&amp;</span> <span class="nx">_sel</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">tagName</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">_sel</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">tagName</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">().</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">1</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;h&#39;</span><span class="p">)))</span> <span class="p">{</span>
                    <span class="k">if</span> <span class="p">(</span><span class="nx">_sel</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">tagName</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">().</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">1</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;h&#39;</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">_sel</span> <span class="o">=</span> <span class="nx">_sel</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">;</span>
                    <span class="p">}</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">_sel</span><span class="p">,</span> <span class="s1">&#39;html&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="k">return</span> <span class="p">[</span><span class="kc">false</span><span class="p">];</span>
                    <span class="p">}</span>
                    <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_swapEl</span><span class="p">(</span><span class="nx">_selEl</span><span class="p">,</span> <span class="s1">&#39;span&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">el</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">el</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;yui-non&#39;</span><span class="p">;</span>
                    <span class="p">});</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_selectNode</span><span class="p">(</span><span class="nx">el</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="nx">el</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="nx">exec</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">_selEl</span><span class="p">,</span> <span class="s1">&#39;h1&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">_selEl</span><span class="p">,</span> <span class="s1">&#39;h2&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">_selEl</span><span class="p">,</span> <span class="s1">&#39;h3&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">_selEl</span><span class="p">,</span> <span class="s1">&#39;h4&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">_selEl</span><span class="p">,</span> <span class="s1">&#39;h5&#39;</span><span class="p">)</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">_selEl</span><span class="p">,</span> <span class="s1">&#39;h6&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_swapEl</span><span class="p">(</span><span class="nx">_selEl</span><span class="p">,</span> <span class="nx">value</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_selectNode</span><span class="p">(</span><span class="nx">el</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="nx">el</span><span class="p">;</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_createCurrentElement</span><span class="p">(</span><span class="nx">value</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_selectNode</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
                <span class="p">}</span>
                <span class="nx">exec</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="p">[</span><span class="nx">exec</span><span class="p">,</span> <span class="nx">action</span><span class="p">];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_hiddenelements</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        * @description This is an execCommand override method. It is called from execCommand when the execCommand(&#39;hiddenelements&#39;) is used.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_hiddenelements</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_showingHiddenElements</span><span class="p">)</span> <span class="p">{</span>
                <span class="c1">//Don&#39;t auto highlight the hidden button</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_lastButton</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Enabling hidden CSS File&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;SimpleEditor&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_showingHiddenElements</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">deselectButton</span><span class="p">(</span><span class="s1">&#39;hiddenelements&#39;</span><span class="p">);</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">().</span><span class="nx">body</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_HIDDEN</span><span class="p">);</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Disabling hidden CSS File&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;SimpleEditor&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_showingHiddenElements</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
                <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">().</span><span class="nx">body</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">CLASS_HIDDEN</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">toolbar</span><span class="p">.</span><span class="nx">selectButton</span><span class="p">(</span><span class="s1">&#39;hiddenelements&#39;</span><span class="p">);</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="p">[</span><span class="kc">false</span><span class="p">];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_removeformat</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        * @description This is an execCommand override method. It is called from execCommand when the execCommand(&#39;removeformat&#39;) is used.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_removeformat</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">exec</span> <span class="o">=</span> <span class="kc">true</span><span class="p">;</span>
            <span class="cm">/*</span>
<span class="cm">            * @knownissue Remove Format issue</span>
<span class="cm">            * @browser Safari 2.x</span>
<span class="cm">            * @description There is an issue here with Safari, that it may not always remove the format of the item that is selected.</span>
<span class="cm">            * Due to the way that Safari 2.x handles ranges, it is very difficult to determine what the selection holds.</span>
<span class="cm">            * So here we are making the best possible guess and acting on it.</span>
<span class="cm">            */</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit</span> <span class="o">&amp;&amp;</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">().</span><span class="nx">queryCommandEnabled</span><span class="p">(</span><span class="s1">&#39;removeformat&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="kd">var</span> <span class="nx">_txt</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getSelection</span><span class="p">()</span><span class="o">+</span><span class="s1">&#39;&#39;</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">_createCurrentElement</span><span class="p">(</span><span class="s1">&#39;span&#39;</span><span class="p">);</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;yui-non&#39;</span><span class="p">;</span>
                <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">_txt</span><span class="p">;</span>
                <span class="k">for</span> <span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">removeChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
                <span class="p">}</span>
                
                <span class="nx">exec</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="p">[</span><span class="nx">exec</span><span class="p">];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_script</span>
<span class="cm">        * @param action action passed from the execCommand method</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        * @description This is a combined execCommand override method. It is called from the cmd_superscript and cmd_subscript methods.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_script</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">action</span><span class="p">,</span> <span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">exec</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nx">tag</span> <span class="o">=</span> <span class="nx">action</span><span class="p">.</span><span class="nx">toLowerCase</span><span class="p">().</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">3</span><span class="p">),</span>
                <span class="nx">_span</span> <span class="o">=</span> <span class="kc">null</span><span class="p">,</span> <span class="nx">_selEl</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getSelectedElement</span><span class="p">();</span>

            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit</span><span class="p">)</span> <span class="p">{</span>
                <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Safari dom fun again (&#39;</span> <span class="o">+</span> <span class="nx">action</span> <span class="o">+</span> <span class="s1">&#39;)..&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;EditorSafari&#39;</span><span class="p">);</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">_selEl</span><span class="p">,</span> <span class="nx">tag</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;we are a child of tag (&#39;</span> <span class="o">+</span> <span class="nx">tag</span> <span class="o">+</span> <span class="s1">&#39;), reverse process&#39;</span><span class="p">,</span> <span class="s1">&#39;info&#39;</span><span class="p">,</span> <span class="s1">&#39;EditorSafari&#39;</span><span class="p">);</span>
                    <span class="nx">_span</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_swapEl</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="s1">&#39;span&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">el</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">el</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="s1">&#39;yui-non&#39;</span><span class="p">;</span>
                    <span class="p">});</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_selectNode</span><span class="p">(</span><span class="nx">_span</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_createCurrentElement</span><span class="p">(</span><span class="nx">tag</span><span class="p">);</span>
                    <span class="kd">var</span> <span class="nx">_sub</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_swapEl</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="nx">tag</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_selectNode</span><span class="p">(</span><span class="nx">_sub</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="nx">_sub</span><span class="p">;</span>
                <span class="p">}</span>
                <span class="nx">exec</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="nx">exec</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_superscript</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        * @description This is an execCommand override method. It is called from execCommand when the execCommand(&#39;superscript&#39;) is used.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_superscript</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">return</span> <span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">cmd_script</span><span class="p">(</span><span class="s1">&#39;superscript&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="p">)];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_subscript</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        * @description This is an execCommand override method. It is called from execCommand when the execCommand(&#39;subscript&#39;) is used.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_subscript</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">return</span> <span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">cmd_script</span><span class="p">(</span><span class="s1">&#39;subscript&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="p">)];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_indent</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        * @description This is an execCommand override method. It is called from execCommand when the execCommand(&#39;indent&#39;) is used.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_indent</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">exec</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nx">selEl</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getSelectedElement</span><span class="p">(),</span> <span class="nx">_bq</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>

            <span class="c1">//if (this.browser.webkit || this.browser.ie || this.browser.gecko) {</span>
            <span class="c1">//if (this.browser.webkit || this.browser.ie) {</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">ie</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">selEl</span><span class="p">,</span> <span class="s1">&#39;blockquote&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="nx">_bq</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">().</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;blockquote&#39;</span><span class="p">);</span>
                    <span class="nx">_bq</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">selEl</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">;</span>
                    <span class="nx">selEl</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="p">;</span>
                    <span class="nx">selEl</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">_bq</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_selectNode</span><span class="p">(</span><span class="nx">_bq</span><span class="p">);</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">_bq</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">().</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;blockquote&#39;</span><span class="p">);</span>
                    <span class="kd">var</span> <span class="nx">html</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getRange</span><span class="p">().</span><span class="nx">htmlText</span><span class="p">;</span>
                    <span class="nx">_bq</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">html</span><span class="p">;</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_createCurrentElement</span><span class="p">(</span><span class="s1">&#39;blockquote&#39;</span><span class="p">);</span>
                    <span class="cm">/*</span>
<span class="cm">                    for (var i = 0; i &lt; this.currentElement.length; i++) {</span>
<span class="cm">                        _bq = this._getDoc().createElement(&#39;blockquote&#39;);</span>
<span class="cm">                        _bq.innerHTML = this.currentElement[i].innerHTML;</span>
<span class="cm">                        this.currentElement[i].parentNode.replaceChild(_bq, this.currentElement[i]);</span>
<span class="cm">                        this.currentElement[i] = _bq;</span>
<span class="cm">                    }</span>
<span class="cm">                    */</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">parentNode</span><span class="p">.</span><span class="nx">replaceChild</span><span class="p">(</span><span class="nx">_bq</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="nx">_bq</span><span class="p">;</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_selectNode</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
                <span class="p">}</span>
                <span class="nx">exec</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="nx">value</span> <span class="o">=</span> <span class="s1">&#39;blockquote&#39;</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="p">[</span><span class="nx">exec</span><span class="p">,</span> <span class="s1">&#39;formatblock&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="p">];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_outdent</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        * @description This is an execCommand override method. It is called from execCommand when the execCommand(&#39;outdent&#39;) is used.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_outdent</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">value</span><span class="p">)</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">exec</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nx">selEl</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getSelectedElement</span><span class="p">(),</span> <span class="nx">_bq</span> <span class="o">=</span> <span class="kc">null</span><span class="p">,</span> <span class="nx">_span</span> <span class="o">=</span> <span class="kc">null</span><span class="p">;</span>
            <span class="c1">//if (this.browser.webkit || this.browser.ie || this.browser.gecko) {</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">webkit</span> <span class="o">||</span> <span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">ie</span><span class="p">)</span> <span class="p">{</span>
            <span class="c1">//if (this.browser.ie) {</span>
                <span class="nx">selEl</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getSelectedElement</span><span class="p">();</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">selEl</span><span class="p">,</span> <span class="s1">&#39;blockquote&#39;</span><span class="p">))</span> <span class="p">{</span>
                    <span class="kd">var</span> <span class="nx">par</span> <span class="o">=</span> <span class="nx">selEl</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">;</span>
                    <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_isElement</span><span class="p">(</span><span class="nx">selEl</span><span class="p">.</span><span class="nx">parentNode</span><span class="p">,</span> <span class="s1">&#39;blockquote&#39;</span><span class="p">))</span> <span class="p">{</span>
                        <span class="nx">par</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">selEl</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">;</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_selectNode</span><span class="p">(</span><span class="nx">par</span><span class="p">);</span>
                    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                        <span class="nx">_span</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getDoc</span><span class="p">().</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;span&#39;</span><span class="p">);</span>
                        <span class="nx">_span</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">selEl</span><span class="p">.</span><span class="nx">innerHTML</span><span class="p">;</span>
                        <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">_span</span><span class="p">,</span> <span class="s1">&#39;yui-non&#39;</span><span class="p">);</span>
                        <span class="nx">par</span><span class="p">.</span><span class="nx">replaceChild</span><span class="p">(</span><span class="nx">_span</span><span class="p">,</span> <span class="nx">selEl</span><span class="p">);</span>
                        <span class="k">this</span><span class="p">.</span><span class="nx">_selectNode</span><span class="p">(</span><span class="nx">_span</span><span class="p">);</span>
                    <span class="p">}</span>
                <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">&#39;Can not outdent, we are not inside a blockquote&#39;</span><span class="p">,</span> <span class="s1">&#39;warn&#39;</span><span class="p">,</span> <span class="s1">&#39;Editor&#39;</span><span class="p">);</span>
                <span class="p">}</span>
                <span class="nx">exec</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
                <span class="nx">value</span> <span class="o">=</span> <span class="kc">false</span><span class="p">;</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="p">[</span><span class="nx">exec</span><span class="p">,</span> <span class="s1">&#39;outdent&#39;</span><span class="p">,</span> <span class="nx">value</span><span class="p">];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_justify</span>
<span class="cm">        * @param dir The direction to justify</span>
<span class="cm">        * @description This is a factory method for the justify family of commands.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_justify</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">dir</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">browser</span><span class="p">.</span><span class="nx">ie</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_hasSelection</span><span class="p">())</span> <span class="p">{</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_createCurrentElement</span><span class="p">(</span><span class="s1">&#39;span&#39;</span><span class="p">);</span>
                    <span class="k">this</span><span class="p">.</span><span class="nx">_swapEl</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">currentElement</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="s1">&#39;div&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">el</span><span class="p">)</span> <span class="p">{</span>
                        <span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">textAlign</span> <span class="o">=</span> <span class="nx">dir</span><span class="p">;</span>
                    <span class="p">});</span>
                    
                    <span class="k">return</span> <span class="p">[</span><span class="kc">false</span><span class="p">];</span>
                <span class="p">}</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="p">[</span><span class="kc">true</span><span class="p">,</span> <span class="s1">&#39;justify&#39;</span> <span class="o">+</span> <span class="nx">dir</span><span class="p">,</span> <span class="s1">&#39;&#39;</span><span class="p">];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_justifycenter</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        * @description This is an execCommand override method. It is called from execCommand when the execCommand(&#39;justifycenter&#39;) is used.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_justifycenter</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">cmd_justify</span><span class="p">(</span><span class="s1">&#39;center&#39;</span><span class="p">)];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_justifyleft</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        * @description This is an execCommand override method. It is called from execCommand when the execCommand(&#39;justifyleft&#39;) is used.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_justifyleft</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">cmd_justify</span><span class="p">(</span><span class="s1">&#39;left&#39;</span><span class="p">)];</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method cmd_justifyright</span>
<span class="cm">        * @param value Value passed from the execCommand method</span>
<span class="cm">        * @description This is an execCommand override method. It is called from execCommand when the execCommand(&#39;justifyright&#39;) is used.</span>
<span class="cm">        */</span>
        <span class="nx">cmd_justifyright</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="p">[</span><span class="k">this</span><span class="p">.</span><span class="nx">cmd_justify</span><span class="p">(</span><span class="s1">&#39;right&#39;</span><span class="p">)];</span>
        <span class="p">},</span>
        <span class="cm">/* }}}*/</span>        
        <span class="cm">/**</span>
<span class="cm">        * @method toString</span>
<span class="cm">        * @description Returns a string representing the editor.</span>
<span class="cm">        * @return {String}</span>
<span class="cm">        */</span>
        <span class="nx">toString</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="kd">var</span> <span class="nx">str</span> <span class="o">=</span> <span class="s1">&#39;Editor&#39;</span><span class="p">;</span>
            <span class="k">if</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span> <span class="o">&amp;&amp;</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element_cont&#39;</span><span class="p">))</span> <span class="p">{</span>
                <span class="nx">str</span> <span class="o">=</span> <span class="s1">&#39;Editor (#&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;element_cont&#39;</span><span class="p">).</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)</span> <span class="o">+</span> <span class="s1">&#39;)&#39;</span> <span class="o">+</span> <span class="p">((</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;disabled&#39;</span><span class="p">)</span> <span class="o">?</span> <span class="s1">&#39; Disabled&#39;</span> <span class="o">:</span> <span class="s1">&#39;&#39;</span><span class="p">));</span>
            <span class="p">}</span>
            <span class="k">return</span> <span class="nx">str</span><span class="p">;</span>
        <span class="p">}</span>
    <span class="p">});</span>
<span class="cm">/**</span>
<span class="cm">* @event beforeOpenWindow</span>
<span class="cm">* @param {&lt;a href=&quot;YAHOO.widget.EditorWindow.html&quot;&gt;EditorWindow&lt;/a&gt;} win The EditorWindow object</span>
<span class="cm">* @param {Overlay} panel The Overlay object that is used to create the window.</span>
<span class="cm">* @description Event fires before an Editor Window is opened. See &lt;a href=&quot;YAHOO.util.Element.html#addListener&quot;&gt;Element.addListener&lt;/a&gt; for more information on listening for this event.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event afterOpenWindow</span>
<span class="cm">* @param {&lt;a href=&quot;YAHOO.widget.EditorWindow.html&quot;&gt;EditorWindow&lt;/a&gt;} win The EditorWindow object</span>
<span class="cm">* @param {Overlay} panel The Overlay object that is used to create the window.</span>
<span class="cm">* @description Event fires after an Editor Window is opened. See &lt;a href=&quot;YAHOO.util.Element.html#addListener&quot;&gt;Element.addListener&lt;/a&gt; for more information on listening for this event.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event closeWindow</span>
<span class="cm">* @param {&lt;a href=&quot;YAHOO.widget.EditorWindow.html&quot;&gt;EditorWindow&lt;/a&gt;} win The EditorWindow object</span>
<span class="cm">* @description Event fires after an Editor Window is closed. See &lt;a href=&quot;YAHOO.util.Element.html#addListener&quot;&gt;Element.addListener&lt;/a&gt; for more information on listening for this event.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event windowCMDOpen</span>
<span class="cm">* @param {&lt;a href=&quot;YAHOO.widget.EditorWindow.html&quot;&gt;EditorWindow&lt;/a&gt;} win The EditorWindow object</span>
<span class="cm">* @param {Overlay} panel The Overlay object that is used to create the window.</span>
<span class="cm">* @description Dynamic event fired when an &lt;a href=&quot;YAHOO.widget.EditorWindow.html&quot;&gt;EditorWindow&lt;/a&gt; is opened.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkOpen event. See &lt;a href=&quot;YAHOO.util.Element.html#addListener&quot;&gt;Element.addListener&lt;/a&gt; for more information on listening for this event.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event windowCMDClose</span>
<span class="cm">* @param {&lt;a href=&quot;YAHOO.widget.EditorWindow.html&quot;&gt;EditorWindow&lt;/a&gt;} win The EditorWindow object</span>
<span class="cm">* @param {Overlay} panel The Overlay object that is used to create the window.</span>
<span class="cm">* @description Dynamic event fired when an &lt;a href=&quot;YAHOO.widget.EditorWindow.html&quot;&gt;EditorWindow&lt;/a&gt; is closed.. The dynamic event is based on the name of the window. Example Window: createlink, opening this window would fire the windowcreatelinkClose event. See &lt;a href=&quot;YAHOO.util.Element.html#addListener&quot;&gt;Element.addListener&lt;/a&gt; for more information on listening for this event.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event windowRender</span>
<span class="cm">* @param {&lt;a href=&quot;YAHOO.widget.EditorWindow.html&quot;&gt;EditorWindow&lt;/a&gt;} win The EditorWindow object</span>
<span class="cm">* @param {Overlay} panel The Overlay object that is used to create the window.</span>
<span class="cm">* @description Event fired when the initial Overlay is rendered. Can be used to manipulate the content of the panel.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event windowInsertImageRender</span>
<span class="cm">* @param {Overlay} panel The Overlay object that is used to create the window.</span>
<span class="cm">* @param {HTMLElement} body The HTML element used as the body of the window..</span>
<span class="cm">* @param {Toolbar} toolbar A reference to the toolbar object used inside this window.</span>
<span class="cm">* @description Event fired when the pre render of the Insert Image window has finished.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>
<span class="cm">/**</span>
<span class="cm">* @event windowCreateLinkRender</span>
<span class="cm">* @param {Overlay} panel The Overlay object that is used to create the window.</span>
<span class="cm">* @param {HTMLElement} body The HTML element used as the body of the window..</span>
<span class="cm">* @description Event fired when the pre render of the Create Link window has finished.</span>
<span class="cm">* @type YAHOO.util.CustomEvent</span>
<span class="cm">*/</span>



    <span class="cm">/**</span>
<span class="cm">     * @description Class to hold Window information between uses. We use the same panel to show the windows, so using this will allow you to configure a window before it is shown.</span>
<span class="cm">     * This is what you pass to Editor.openWindow();. These parameters will not take effect until the openWindow() is called in the editor.</span>
<span class="cm">     * @class EditorWindow</span>
<span class="cm">     * @param {String} name The name of the window.</span>
<span class="cm">     * @param {Object} attrs Attributes for the window. Current attributes used are : height and width</span>
<span class="cm">    */</span>
    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">EditorWindow</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">name</span><span class="p">,</span> <span class="nx">attrs</span><span class="p">)</span> <span class="p">{</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property name</span>
<span class="cm">        * @description A unique name for the window</span>
<span class="cm">        */</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">name</span> <span class="o">=</span> <span class="nx">name</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">,</span> <span class="s1">&#39;_&#39;</span><span class="p">);</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property attrs</span>
<span class="cm">        * @description The window attributes</span>
<span class="cm">        */</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">attrs</span> <span class="o">=</span> <span class="nx">attrs</span><span class="p">;</span>
    <span class="p">};</span>

    <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">EditorWindow</span><span class="p">.</span><span class="nx">prototype</span> <span class="o">=</span> <span class="p">{</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property header</span>
<span class="cm">        * @description Holder for the header of the window, used in Editor.openWindow</span>
<span class="cm">        */</span>
        <span class="nx">header</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property body</span>
<span class="cm">        * @description Holder for the body of the window, used in Editor.openWindow</span>
<span class="cm">        */</span>
        <span class="nx">body</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @private</span>
<span class="cm">        * @property footer</span>
<span class="cm">        * @description Holder for the footer of the window, used in Editor.openWindow</span>
<span class="cm">        */</span>
        <span class="nx">footer</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
        <span class="cm">/**</span>
<span class="cm">        * @method setHeader</span>
<span class="cm">        * @description Sets the header for the window.</span>
<span class="cm">        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows header.</span>
<span class="cm">        */</span>
        <span class="nx">setHeader</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">str</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">header</span> <span class="o">=</span> <span class="nx">str</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method setBody</span>
<span class="cm">        * @description Sets the body for the window.</span>
<span class="cm">        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows body.</span>
<span class="cm">        */</span>
        <span class="nx">setBody</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">str</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">body</span> <span class="o">=</span> <span class="nx">str</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method setFooter</span>
<span class="cm">        * @description Sets the footer for the window.</span>
<span class="cm">        * @param {String/HTMLElement} str The string or DOM reference to be used as the windows footer.</span>
<span class="cm">        */</span>
        <span class="nx">setFooter</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">str</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">footer</span> <span class="o">=</span> <span class="nx">str</span><span class="p">;</span>
        <span class="p">},</span>
        <span class="cm">/**</span>
<span class="cm">        * @method toString</span>
<span class="cm">        * @description Returns a string representing the EditorWindow.</span>
<span class="cm">        * @return {String}</span>
<span class="cm">        */</span>
        <span class="nx">toString</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">return</span> <span class="s1">&#39;Editor Window (&#39;</span> <span class="o">+</span> <span class="k">this</span><span class="p">.</span><span class="nx">name</span> <span class="o">+</span> <span class="s1">&#39;)&#39;</span><span class="p">;</span>
        <span class="p">}</span>
    <span class="p">};</span>
<span class="p">})();</span>
</pre></div>

                    </div>
			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>Modules</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datemath.html" title="datemath">datemath</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class="selected"><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_element-delegate.html" title="element-delegate">element-delegate</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_event-delegate.html" title="event-delegate">event-delegate</a></li>
                                <li class=""><a href="module_event-mouseenter.html" title="event-mouseenter">event-mouseenter</a></li>
                                <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_progressbar.html" title="progressbar">progressbar</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_selector.html" title="selector">selector</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_storage.html" title="Storage">Storage</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_swf.html" title="swf">swf</a></li>
                                <li class=""><a href="module_swfdetect.html" title="swfdetect">swfdetect</a></li>
                                <li class=""><a href="module_swfstore.html" title="swfstore">swfstore</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>Classes</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.widget.Editor.html" title="YAHOO.widget.Editor">YAHOO.widget.Editor</a></li>
                                <li class=""><a href="YAHOO.widget.EditorInfo.html" title="YAHOO.widget.EditorInfo">YAHOO.widget.EditorInfo</a></li>
                                <li class=""><a href="YAHOO.widget.EditorWindow.html" title="YAHOO.widget.EditorWindow">YAHOO.widget.EditorWindow</a></li>
                                <li class=""><a href="YAHOO.widget.SimpleEditor.html" title="YAHOO.widget.SimpleEditor">YAHOO.widget.SimpleEditor</a></li>
                                <li class=""><a href="YAHOO.widget.Toolbar.html" title="YAHOO.widget.Toolbar">YAHOO.widget.Toolbar</a></li>
                                <li class=""><a href="YAHOO.widget.ToolbarButton.html" title="YAHOO.widget.ToolbarButton">YAHOO.widget.ToolbarButton</a></li>
                                <li class=""><a href="YAHOO.widget.ToolbarButtonAdvanced.html" title="YAHOO.widget.ToolbarButtonAdvanced">YAHOO.widget.ToolbarButtonAdvanced</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>Files</h4>
                        <ul class="content">        
                                <li class="selected"><a href="editor.js.html" title="editor.js">editor.js</a></li>
                                <li class=""><a href="simple-editor.js.html" title="simple-editor.js">simple-editor.js</a></li>
                                <li class=""><a href="toolbar-button.js.html" title="toolbar-button.js">toolbar-button.js</a></li>
                                <li class=""><a href="toolbar.js.html" title="toolbar.js">toolbar.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2011 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">

    var ALL_YUI_PROPS = [{"access": "", "host": "YAHOO.widget.Toolbar", "name": "addButton", "url": "YAHOO.widget.Toolbar.html#method_addButton", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "addButtonGroup", "url": "YAHOO.widget.Toolbar.html#method_addButtonGroup", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "addButtonToGroup", "url": "YAHOO.widget.Toolbar.html#method_addButtonToGroup", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_addMenuClasses", "url": "YAHOO.widget.Toolbar.html#method__addMenuClasses", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "addSeparator", "url": "YAHOO.widget.Toolbar.html#method_addSeparator", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "afterElement", "url": "YAHOO.widget.SimpleEditor.html#property_afterElement", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "afterExecCommand", "url": "YAHOO.widget.SimpleEditor.html#event_afterExecCommand", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "afterNodeChange", "url": "YAHOO.widget.SimpleEditor.html#event_afterNodeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "afterOpenWindow", "url": "YAHOO.widget.Editor.html#event_afterOpenWindow", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "afterRender", "url": "YAHOO.widget.SimpleEditor.html#event_afterRender", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "allowNoEdit", "url": "YAHOO.widget.SimpleEditor.html#config_allowNoEdit", "type": "config"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_alwaysDisabled", "url": "YAHOO.widget.Editor.html#property__alwaysDisabled", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_alwaysDisabled", "url": "YAHOO.widget.SimpleEditor.html#property__alwaysDisabled", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_alwaysEnabled", "url": "YAHOO.widget.Editor.html#property__alwaysEnabled", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_alwaysEnabled", "url": "YAHOO.widget.SimpleEditor.html#property__alwaysEnabled", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "animate", "url": "YAHOO.widget.SimpleEditor.html#config_animate", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "animateChange", "url": "YAHOO.widget.SimpleEditor.html#event_animateChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.EditorWindow", "name": "attrs", "url": "YAHOO.widget.EditorWindow.html#property_attrs", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "autoHeight", "url": "YAHOO.widget.SimpleEditor.html#config_autoHeight", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_baseHREF", "url": "YAHOO.widget.SimpleEditor.html#property__baseHREF", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeAnimateChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeAnimateChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeBlankimageChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeBlankimageChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeButtonsChange", "url": "YAHOO.widget.Toolbar.html#event_beforeButtonsChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeButtonTypeChange", "url": "YAHOO.widget.Toolbar.html#event_beforeButtonTypeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeCollapseChange", "url": "YAHOO.widget.Toolbar.html#event_beforeCollapseChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeCssChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeCssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeDisabledChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeDisabledChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeDisabledChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeDisabledChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeDisabledChange", "url": "YAHOO.widget.Toolbar.html#event_beforeDisabledChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeDompathChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeDompathChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeDraggableChange", "url": "YAHOO.widget.Toolbar.html#event_beforeDraggableChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorClick", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorClick", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorDoubleClick", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorDoubleClick", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorKeyDown", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorKeyDown", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorKeyPress", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorKeyPress", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorKeyUp", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorKeyUp", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorMouseDown", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorMouseDown", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeEditorMouseUp", "url": "YAHOO.widget.SimpleEditor.html#event_beforeEditorMouseUp", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeElement", "url": "YAHOO.widget.SimpleEditor.html#property_beforeElement", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeExecCommand", "url": "YAHOO.widget.SimpleEditor.html#event_beforeExecCommand", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeExtracssChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeExtracssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeFocusAtStartChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeFocusAtStartChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeGrouplabelsChange", "url": "YAHOO.widget.Toolbar.html#event_beforeGrouplabelsChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeHandleSubmitChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeHandleSubmitChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeHeightChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeHeightChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "beforeHiddencssChange", "url": "YAHOO.widget.Editor.html#event_beforeHiddencssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeHtmlChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeHtmlChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeLabelChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeLabelChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "beforeLocalFileWarningChange", "url": "YAHOO.widget.Editor.html#event_beforeLocalFileWarningChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeMarkupChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeMarkupChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeMenuChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeMenuChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeNodeChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeNodeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "beforeOpenWindow", "url": "YAHOO.widget.Editor.html#event_beforeOpenWindow", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeRemoveLineBreaksChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeRemoveLineBreaksChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "beforeTitlebarChange", "url": "YAHOO.widget.Toolbar.html#event_beforeTitlebarChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeTitleChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeTitleChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeToolbarChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeToolbarChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeTypeChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeTypeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "beforeValueChange", "url": "YAHOO.widget.ToolbarButton.html#event_beforeValueChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "beforeWidthChange", "url": "YAHOO.widget.SimpleEditor.html#event_beforeWidthChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "blankimage", "url": "YAHOO.widget.SimpleEditor.html#config_blankimage", "type": "config"}, {"access": "private", "host": "YAHOO.widget.EditorInfo", "name": "blankImage", "url": "YAHOO.widget.EditorInfo.html#property_blankImage", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "blankimageChange", "url": "YAHOO.widget.SimpleEditor.html#event_blankimageChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_blankImageLoaded", "url": "YAHOO.widget.SimpleEditor.html#property__blankImageLoaded", "type": "property"}, {"access": "private", "host": "YAHOO.widget.EditorWindow", "name": "body", "url": "YAHOO.widget.EditorWindow.html#property_body", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "browser", "url": "YAHOO.widget.SimpleEditor.html#property_browser", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "browser", "url": "YAHOO.widget.Toolbar.html#property_browser", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_buttonClick", "url": "YAHOO.widget.Toolbar.html#method__buttonClick", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttonClick", "url": "YAHOO.widget.Toolbar.html#event_buttonClick", "type": "event"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_buttonGroupList", "url": "YAHOO.widget.Toolbar.html#property__buttonGroupList", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_buttonList", "url": "YAHOO.widget.Toolbar.html#property__buttonList", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttons", "url": "YAHOO.widget.Toolbar.html#config_buttons", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttonsChange", "url": "YAHOO.widget.Toolbar.html#event_buttonsChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.ToolbarButtonAdvanced", "name": "buttonType", "url": "YAHOO.widget.ToolbarButtonAdvanced.html#property_buttonType", "type": "property"}, {"access": "private", "host": "YAHOO.widget.ToolbarButton", "name": "buttonType", "url": "YAHOO.widget.ToolbarButton.html#property_buttonType", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttonType", "url": "YAHOO.widget.Toolbar.html#property_buttonType", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttonType", "url": "YAHOO.widget.Toolbar.html#config_buttonType", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "buttonTypeChange", "url": "YAHOO.widget.Toolbar.html#event_buttonTypeChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_checkKey", "url": "YAHOO.widget.SimpleEditor.html#method__checkKey", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_checkLoaded", "url": "YAHOO.widget.SimpleEditor.html#method__checkLoaded", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_checkUndo", "url": "YAHOO.widget.Editor.html#method__checkUndo", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButtonAdvanced", "name": "checkValue", "url": "YAHOO.widget.ToolbarButtonAdvanced.html#method_checkValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "checkValue", "url": "YAHOO.widget.ToolbarButton.html#method_checkValue", "type": "method"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "CLASS_CONTAINER", "url": "YAHOO.widget.SimpleEditor.html#property_CLASS_CONTAINER", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "CLASS_CONTAINER", "url": "YAHOO.widget.Toolbar.html#property_CLASS_CONTAINER", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "CLASS_DISABLED", "url": "YAHOO.widget.Toolbar.html#property_CLASS_DISABLED", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "CLASS_DRAGHANDLE", "url": "YAHOO.widget.Toolbar.html#property_CLASS_DRAGHANDLE", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "CLASS_EDITABLE", "url": "YAHOO.widget.SimpleEditor.html#property_CLASS_EDITABLE", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "CLASS_EDITABLE_CONT", "url": "YAHOO.widget.SimpleEditor.html#property_CLASS_EDITABLE_CONT", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Editor", "name": "CLASS_HIDDEN", "url": "YAHOO.widget.Editor.html#property_CLASS_HIDDEN", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Editor", "name": "CLASS_LOCAL_FILE", "url": "YAHOO.widget.Editor.html#property_CLASS_LOCAL_FILE", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "CLASS_NOEDIT", "url": "YAHOO.widget.SimpleEditor.html#property_CLASS_NOEDIT", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "CLASS_PREFIX", "url": "YAHOO.widget.SimpleEditor.html#property_CLASS_PREFIX", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "CLASS_PREFIX", "url": "YAHOO.widget.Toolbar.html#property_CLASS_PREFIX", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "CLASS_SEPARATOR", "url": "YAHOO.widget.Toolbar.html#property_CLASS_SEPARATOR", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_cleanClassName", "url": "YAHOO.widget.SimpleEditor.html#method__cleanClassName", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cleanHTML", "url": "YAHOO.widget.SimpleEditor.html#method_cleanHTML", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cleanHTML", "url": "YAHOO.widget.SimpleEditor.html#event_cleanHTML", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "_cleanIncomingHTML", "url": "YAHOO.widget.SimpleEditor.html#method__cleanIncomingHTML", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "clearEditorDoc", "url": "YAHOO.widget.SimpleEditor.html#method_clearEditorDoc", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_closeWindow", "url": "YAHOO.widget.Editor.html#method__closeWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "closeWindow", "url": "YAHOO.widget.Editor.html#method_closeWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "closeWindow", "url": "YAHOO.widget.Editor.html#event_closeWindow", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_closeWindow", "url": "YAHOO.widget.SimpleEditor.html#method__closeWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "closeWindow", "url": "YAHOO.widget.SimpleEditor.html#method_closeWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_backcolor", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_backcolor", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_bold", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_bold", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_createlink", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_createlink", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_fontname", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_fontname", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_fontsize", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_fontsize", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_forecolor", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_forecolor", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_heading", "url": "YAHOO.widget.Editor.html#method_cmd_heading", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_hiddenelements", "url": "YAHOO.widget.Editor.html#method_cmd_hiddenelements", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_indent", "url": "YAHOO.widget.Editor.html#method_cmd_indent", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_inserthtml", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_inserthtml", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_insertimage", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_insertimage", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_insertorderedlist", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_insertorderedlist", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_insertunorderedlist", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_insertunorderedlist", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_italic", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_italic", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_justify", "url": "YAHOO.widget.Editor.html#method_cmd_justify", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_justifycenter", "url": "YAHOO.widget.Editor.html#method_cmd_justifycenter", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_justifyleft", "url": "YAHOO.widget.Editor.html#method_cmd_justifyleft", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_justifyright", "url": "YAHOO.widget.Editor.html#method_cmd_justifyright", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_list", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_list", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_outdent", "url": "YAHOO.widget.Editor.html#method_cmd_outdent", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_redo", "url": "YAHOO.widget.Editor.html#method_cmd_redo", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_removeformat", "url": "YAHOO.widget.Editor.html#method_cmd_removeformat", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_script", "url": "YAHOO.widget.Editor.html#method_cmd_script", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_subscript", "url": "YAHOO.widget.Editor.html#method_cmd_subscript", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_superscript", "url": "YAHOO.widget.Editor.html#method_cmd_superscript", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_underline", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_underline", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "cmd_undo", "url": "YAHOO.widget.Editor.html#method_cmd_undo", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cmd_unlink", "url": "YAHOO.widget.SimpleEditor.html#method_cmd_unlink", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "collapse", "url": "YAHOO.widget.Toolbar.html#method_collapse", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "collapse", "url": "YAHOO.widget.Toolbar.html#config_collapse", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "collapseChange", "url": "YAHOO.widget.Toolbar.html#event_collapseChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "_colorData", "url": "YAHOO.widget.Toolbar.html#property__colorData", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "_colorPicker", "url": "YAHOO.widget.Toolbar.html#property__colorPicker", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_configuredButtons", "url": "YAHOO.widget.Toolbar.html#property__configuredButtons", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "cont", "url": "YAHOO.widget.Toolbar.html#config_cont", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "container", "url": "YAHOO.widget.SimpleEditor.html#config_container", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "container", "url": "YAHOO.widget.ToolbarButton.html#config_container", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_contentTimer", "url": "YAHOO.widget.SimpleEditor.html#property__contentTimer", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_contentTimerCounter", "url": "YAHOO.widget.SimpleEditor.html#property__contentTimerCounter", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_contentTimerMax", "url": "YAHOO.widget.SimpleEditor.html#property__contentTimerMax", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_createColorPicker", "url": "YAHOO.widget.Toolbar.html#method__createColorPicker", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_createCurrentElement", "url": "YAHOO.widget.SimpleEditor.html#method__createCurrentElement", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_createIframe", "url": "YAHOO.widget.SimpleEditor.html#method__createIframe", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_createInsertElement", "url": "YAHOO.widget.SimpleEditor.html#method__createInsertElement", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "css", "url": "YAHOO.widget.SimpleEditor.html#config_css", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "cssChange", "url": "YAHOO.widget.SimpleEditor.html#event_cssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "currentElement", "url": "YAHOO.widget.SimpleEditor.html#property_currentElement", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "currentEvent", "url": "YAHOO.widget.SimpleEditor.html#property_currentEvent", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "currentFont", "url": "YAHOO.widget.SimpleEditor.html#property_currentFont", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "currentWindow", "url": "YAHOO.widget.SimpleEditor.html#property_currentWindow", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "dd", "url": "YAHOO.widget.SimpleEditor.html#property_dd", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "dd", "url": "YAHOO.widget.Toolbar.html#property_dd", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "_defaultCSS", "url": "YAHOO.widget.SimpleEditor.html#property__defaultCSS", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_defaultImageToolbar", "url": "YAHOO.widget.Editor.html#method__defaultImageToolbar", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_defaultImageToolbarConfig", "url": "YAHOO.widget.Editor.html#method__defaultImageToolbarConfig", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_defaultToolbar", "url": "YAHOO.widget.SimpleEditor.html#property__defaultToolbar", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "deselectAllButtons", "url": "YAHOO.widget.Toolbar.html#method_deselectAllButtons", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "deselectButton", "url": "YAHOO.widget.Toolbar.html#method_deselectButton", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "destroy", "url": "YAHOO.widget.SimpleEditor.html#method_destroy", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "destroy", "url": "YAHOO.widget.ToolbarButton.html#method_destroy", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "destroy", "url": "YAHOO.widget.Toolbar.html#method_destroy", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "destroyButton", "url": "YAHOO.widget.Toolbar.html#method_destroyButton", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "disableAllButtons", "url": "YAHOO.widget.Toolbar.html#method_disableAllButtons", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "disableButton", "url": "YAHOO.widget.Toolbar.html#method_disableButton", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_disabled", "url": "YAHOO.widget.Editor.html#property__disabled", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_disabled", "url": "YAHOO.widget.SimpleEditor.html#property__disabled", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "disabled", "url": "YAHOO.widget.SimpleEditor.html#config_disabled", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "disabled", "url": "YAHOO.widget.ToolbarButton.html#config_disabled", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "disabled", "url": "YAHOO.widget.Toolbar.html#config_disabled", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "disabledChange", "url": "YAHOO.widget.SimpleEditor.html#event_disabledChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "disabledChange", "url": "YAHOO.widget.ToolbarButton.html#event_disabledChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "disabledChange", "url": "YAHOO.widget.Toolbar.html#event_disabledChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "disabled_iframe", "url": "YAHOO.widget.SimpleEditor.html#config_disabled_iframe", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_disableEditor", "url": "YAHOO.widget.SimpleEditor.html#method__disableEditor", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "_docType", "url": "YAHOO.widget.SimpleEditor.html#property__docType", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "dompath", "url": "YAHOO.widget.SimpleEditor.html#property_dompath", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "dompath", "url": "YAHOO.widget.SimpleEditor.html#config_dompath", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "dompathChange", "url": "YAHOO.widget.SimpleEditor.html#event_dompathChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "DOMReady", "url": "YAHOO.widget.SimpleEditor.html#property_DOMReady", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "drag", "url": "YAHOO.widget.SimpleEditor.html#config_drag", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "draggable", "url": "YAHOO.widget.Toolbar.html#config_draggable", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "draggableChange", "url": "YAHOO.widget.Toolbar.html#event_draggableChange", "type": "event"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "draghandle", "url": "YAHOO.widget.Toolbar.html#property_draghandle", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorClick", "url": "YAHOO.widget.SimpleEditor.html#event_editorClick", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorContentLoaded", "url": "YAHOO.widget.SimpleEditor.html#event_editorContentLoaded", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorDirty", "url": "YAHOO.widget.SimpleEditor.html#property_editorDirty", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorDoubleClick", "url": "YAHOO.widget.SimpleEditor.html#event_editorDoubleClick", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorKeyDown", "url": "YAHOO.widget.SimpleEditor.html#event_editorKeyDown", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorKeyPress", "url": "YAHOO.widget.SimpleEditor.html#event_editorKeyPress", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorKeyUp", "url": "YAHOO.widget.SimpleEditor.html#event_editorKeyUp", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorMouseDown", "url": "YAHOO.widget.SimpleEditor.html#event_editorMouseDown", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorMouseUp", "url": "YAHOO.widget.SimpleEditor.html#event_editorMouseUp", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "EDITOR_PANEL_ID", "url": "YAHOO.widget.Editor.html#property_EDITOR_PANEL_ID", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorWindowBlur", "url": "YAHOO.widget.SimpleEditor.html#event_editorWindowBlur", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "editorWindowFocus", "url": "YAHOO.widget.SimpleEditor.html#event_editorWindowFocus", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "editor_wrapper", "url": "YAHOO.widget.SimpleEditor.html#config_editor_wrapper", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "element_cont", "url": "YAHOO.widget.SimpleEditor.html#config_element_cont", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "enableAllButtons", "url": "YAHOO.widget.Toolbar.html#method_enableAllButtons", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "enableButton", "url": "YAHOO.widget.Toolbar.html#method_enableButton", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "execCommand", "url": "YAHOO.widget.SimpleEditor.html#method_execCommand", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "extracss", "url": "YAHOO.widget.SimpleEditor.html#config_extracss", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "extracssChange", "url": "YAHOO.widget.SimpleEditor.html#event_extracssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_all_rgb", "url": "YAHOO.widget.SimpleEditor.html#method_filter_all_rgb", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_internals", "url": "YAHOO.widget.SimpleEditor.html#method_filter_internals", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_invalid_lists", "url": "YAHOO.widget.SimpleEditor.html#method_filter_invalid_lists", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_msword", "url": "YAHOO.widget.SimpleEditor.html#method_filter_msword", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_rgb", "url": "YAHOO.widget.SimpleEditor.html#method_filter_rgb", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filter_safari", "url": "YAHOO.widget.SimpleEditor.html#method_filter_safari", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "filterWord", "url": "YAHOO.widget.SimpleEditor.html#config_filterWord", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "fireEvent", "url": "YAHOO.widget.ToolbarButton.html#method_fireEvent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_fixListDupIds", "url": "YAHOO.widget.SimpleEditor.html#method__fixListDupIds", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_fixListRunning", "url": "YAHOO.widget.SimpleEditor.html#property__fixListRunning", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_fixNodes", "url": "YAHOO.widget.Editor.html#method__fixNodes", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_fixNodes", "url": "YAHOO.widget.SimpleEditor.html#method__fixNodes", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_fixNodesTimer", "url": "YAHOO.widget.SimpleEditor.html#property__fixNodesTimer", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "focus", "url": "YAHOO.widget.SimpleEditor.html#method_focus", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "focusAtStart", "url": "YAHOO.widget.SimpleEditor.html#config_focusAtStart", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "focusAtStartChange", "url": "YAHOO.widget.SimpleEditor.html#event_focusAtStartChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_focused", "url": "YAHOO.widget.SimpleEditor.html#property__focused", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_focusWindow", "url": "YAHOO.widget.SimpleEditor.html#method__focusWindow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.EditorWindow", "name": "footer", "url": "YAHOO.widget.EditorWindow.html#property_footer", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_formButtonClicked", "url": "YAHOO.widget.SimpleEditor.html#property__formButtonClicked", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_formButtons", "url": "YAHOO.widget.SimpleEditor.html#property__formButtons", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getBlankImage", "url": "YAHOO.widget.SimpleEditor.html#method__getBlankImage", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "getButtonById", "url": "YAHOO.widget.Toolbar.html#method_getButtonById", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "getButtonByIndex", "url": "YAHOO.widget.Toolbar.html#method_getButtonByIndex", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "getButtonByValue", "url": "YAHOO.widget.Toolbar.html#method_getButtonByValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "getButtons", "url": "YAHOO.widget.Toolbar.html#method_getButtons", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getDoc", "url": "YAHOO.widget.SimpleEditor.html#method__getDoc", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getDomPath", "url": "YAHOO.widget.SimpleEditor.html#method__getDomPath", "type": "method"}, {"access": "", "host": "YAHOO.widget.EditorInfo", "name": "getEditorById", "url": "YAHOO.widget.EditorInfo.html#method_getEditorById", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "getEditorHTML", "url": "YAHOO.widget.SimpleEditor.html#method_getEditorHTML", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "getMenu", "url": "YAHOO.widget.ToolbarButton.html#method_getMenu", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getRange", "url": "YAHOO.widget.SimpleEditor.html#method__getRange", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getSelectedElement", "url": "YAHOO.widget.SimpleEditor.html#method__getSelectedElement", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getSelection", "url": "YAHOO.widget.SimpleEditor.html#method__getSelection", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_getUndo", "url": "YAHOO.widget.Editor.html#method__getUndo", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_getWindow", "url": "YAHOO.widget.SimpleEditor.html#method__getWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "grouplabels", "url": "YAHOO.widget.Toolbar.html#config_grouplabels", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "grouplabelsChange", "url": "YAHOO.widget.Toolbar.html#event_grouplabelsChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleAfterNodeChange", "url": "YAHOO.widget.SimpleEditor.html#method__handleAfterNodeChange", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleAlign", "url": "YAHOO.widget.SimpleEditor.html#method__handleAlign", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleAutoHeight", "url": "YAHOO.widget.SimpleEditor.html#method__handleAutoHeight", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleBlur", "url": "YAHOO.widget.SimpleEditor.html#method__handleBlur", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleColorPicker", "url": "YAHOO.widget.SimpleEditor.html#method__handleColorPicker", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleCreateLinkClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleCreateLinkClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_handleCreateLinkWindowClose", "url": "YAHOO.widget.Editor.html#method__handleCreateLinkWindowClose", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleCreateLinkWindowClose", "url": "YAHOO.widget.SimpleEditor.html#method__handleCreateLinkWindowClose", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleDoubleClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleDoubleClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleFocus", "url": "YAHOO.widget.SimpleEditor.html#method__handleFocus", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_handleFocus", "url": "YAHOO.widget.Toolbar.html#method__handleFocus", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleFontSize", "url": "YAHOO.widget.SimpleEditor.html#method__handleFontSize", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleFormButtonClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleFormButtonClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleFormSubmit", "url": "YAHOO.widget.SimpleEditor.html#method__handleFormSubmit", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_handleInsertImageClick", "url": "YAHOO.widget.Editor.html#method__handleInsertImageClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleInsertImageClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleInsertImageClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_handleInsertImageWindowClose", "url": "YAHOO.widget.Editor.html#method__handleInsertImageWindowClose", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleInsertImageWindowClose", "url": "YAHOO.widget.SimpleEditor.html#method__handleInsertImageWindowClose", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_handleKeyDown", "url": "YAHOO.widget.Editor.html#method__handleKeyDown", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleKeyDown", "url": "YAHOO.widget.SimpleEditor.html#method__handleKeyDown", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleKeyPress", "url": "YAHOO.widget.SimpleEditor.html#method__handleKeyPress", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleKeyUp", "url": "YAHOO.widget.SimpleEditor.html#method__handleKeyUp", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleMouseDown", "url": "YAHOO.widget.SimpleEditor.html#method__handleMouseDown", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ToolbarButton", "name": "_handleMouseOut", "url": "YAHOO.widget.ToolbarButton.html#method__handleMouseOut", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ToolbarButton", "name": "_handleMouseOver", "url": "YAHOO.widget.ToolbarButton.html#method__handleMouseOver", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleMouseUp", "url": "YAHOO.widget.SimpleEditor.html#method__handleMouseUp", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ToolbarButton", "name": "_handleSelect", "url": "YAHOO.widget.ToolbarButton.html#method__handleSelect", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "handleSubmit", "url": "YAHOO.widget.SimpleEditor.html#config_handleSubmit", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "handleSubmitChange", "url": "YAHOO.widget.SimpleEditor.html#event_handleSubmitChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_handleToolbarClick", "url": "YAHOO.widget.SimpleEditor.html#method__handleToolbarClick", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "_handleWindowInputs", "url": "YAHOO.widget.Editor.html#method__handleWindowInputs", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_hasParent", "url": "YAHOO.widget.SimpleEditor.html#method__hasParent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_hasSelection", "url": "YAHOO.widget.SimpleEditor.html#method__hasSelection", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_hasUndoLevel", "url": "YAHOO.widget.Editor.html#method__hasUndoLevel", "type": "method"}, {"access": "private", "host": "YAHOO.widget.EditorWindow", "name": "header", "url": "YAHOO.widget.EditorWindow.html#property_header", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "height", "url": "YAHOO.widget.SimpleEditor.html#config_height", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "heightChange", "url": "YAHOO.widget.SimpleEditor.html#event_heightChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "hiddencss", "url": "YAHOO.widget.Editor.html#config_hiddencss", "type": "config"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "hiddencssChange", "url": "YAHOO.widget.Editor.html#event_hiddencssChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "hide", "url": "YAHOO.widget.SimpleEditor.html#method_hide", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "html", "url": "YAHOO.widget.SimpleEditor.html#config_html", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "htmlChange", "url": "YAHOO.widget.SimpleEditor.html#event_htmlChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "iframe", "url": "YAHOO.widget.SimpleEditor.html#config_iframe", "type": "config"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "init", "url": "YAHOO.widget.Editor.html#method_init", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "init", "url": "YAHOO.widget.SimpleEditor.html#method_init", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "init", "url": "YAHOO.widget.ToolbarButton.html#method_init", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "init", "url": "YAHOO.widget.Toolbar.html#method_init", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "initAttributes", "url": "YAHOO.widget.Editor.html#method_initAttributes", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "initAttributes", "url": "YAHOO.widget.SimpleEditor.html#method_initAttributes", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "initAttributes", "url": "YAHOO.widget.ToolbarButton.html#method_initAttributes", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "initAttributes", "url": "YAHOO.widget.Toolbar.html#method_initAttributes", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_initEditor", "url": "YAHOO.widget.SimpleEditor.html#method__initEditor", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_initEditorEvents", "url": "YAHOO.widget.SimpleEditor.html#method__initEditorEvents", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "insert", "url": "YAHOO.widget.SimpleEditor.html#config_insert", "type": "config"}, {"access": "private", "host": "YAHOO.widget.EditorInfo", "name": "_instances", "url": "YAHOO.widget.EditorInfo.html#property__instances", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "invalidHTML", "url": "YAHOO.widget.SimpleEditor.html#property_invalidHTML", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_isElement", "url": "YAHOO.widget.SimpleEditor.html#method__isElement", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_isLocalFile", "url": "YAHOO.widget.SimpleEditor.html#method__isLocalFile", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_isNonEditable", "url": "YAHOO.widget.SimpleEditor.html#method__isNonEditable", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "isSelected", "url": "YAHOO.widget.Toolbar.html#method_isSelected", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_keyMap", "url": "YAHOO.widget.SimpleEditor.html#property__keyMap", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_keyNav", "url": "YAHOO.widget.Toolbar.html#property__keyNav", "type": "property"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "label", "url": "YAHOO.widget.ToolbarButton.html#config_label", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "labelChange", "url": "YAHOO.widget.ToolbarButton.html#event_labelChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_lastButton", "url": "YAHOO.widget.SimpleEditor.html#property__lastButton", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_lastCommand", "url": "YAHOO.widget.SimpleEditor.html#property__lastCommand", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_lastImage", "url": "YAHOO.widget.SimpleEditor.html#property__lastImage", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_lastNodeChange", "url": "YAHOO.widget.SimpleEditor.html#property__lastNodeChange", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_lastNodeChangeEvent", "url": "YAHOO.widget.SimpleEditor.html#property__lastNodeChangeEvent", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "limitCommands", "url": "YAHOO.widget.SimpleEditor.html#config_limitCommands", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_listFix", "url": "YAHOO.widget.SimpleEditor.html#method__listFix", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "localFileWarning", "url": "YAHOO.widget.Editor.html#config_localFileWarning", "type": "config"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "localFileWarningChange", "url": "YAHOO.widget.Editor.html#event_localFileWarningChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_makeColorButton", "url": "YAHOO.widget.Toolbar.html#method__makeColorButton", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_makeSpinButton", "url": "YAHOO.widget.Toolbar.html#method__makeSpinButton", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "markup", "url": "YAHOO.widget.SimpleEditor.html#config_markup", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "markupChange", "url": "YAHOO.widget.SimpleEditor.html#event_markupChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_mask", "url": "YAHOO.widget.SimpleEditor.html#property__mask", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "maxUndo", "url": "YAHOO.widget.SimpleEditor.html#config_maxUndo", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "menu", "url": "YAHOO.widget.ToolbarButton.html#config_menu", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "menuChange", "url": "YAHOO.widget.ToolbarButton.html#event_menuChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "moveWindow", "url": "YAHOO.widget.Editor.html#method_moveWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "moveWindow", "url": "YAHOO.widget.SimpleEditor.html#method_moveWindow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.EditorWindow", "name": "name", "url": "YAHOO.widget.EditorWindow.html#property_name", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_navCounter", "url": "YAHOO.widget.Toolbar.html#property__navCounter", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_navigateButtons", "url": "YAHOO.widget.Toolbar.html#method__navigateButtons", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_nodeChange", "url": "YAHOO.widget.SimpleEditor.html#method__nodeChange", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "nodeChange", "url": "YAHOO.widget.SimpleEditor.html#method_nodeChange", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "nodeChangeDelay", "url": "YAHOO.widget.SimpleEditor.html#config_nodeChangeDelay", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_nodeChangeDelayTimer", "url": "YAHOO.widget.SimpleEditor.html#property__nodeChangeDelayTimer", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "nodeChangeThreshold", "url": "YAHOO.widget.SimpleEditor.html#config_nodeChangeThreshold", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_nodeChangeTimer", "url": "YAHOO.widget.SimpleEditor.html#property__nodeChangeTimer", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "openWindow", "url": "YAHOO.widget.Editor.html#method_openWindow", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "openWindow", "url": "YAHOO.widget.SimpleEditor.html#method_openWindow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "operaEvent", "url": "YAHOO.widget.SimpleEditor.html#property_operaEvent", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "panel", "url": "YAHOO.widget.SimpleEditor.html#config_panel", "type": "config"}, {"access": "private", "host": "YAHOO.widget.EditorInfo", "name": "panel", "url": "YAHOO.widget.EditorInfo.html#property_panel", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "plainText", "url": "YAHOO.widget.SimpleEditor.html#config_plainText", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "post_filter_linebreaks", "url": "YAHOO.widget.SimpleEditor.html#method_post_filter_linebreaks", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "pre_filter_linebreaks", "url": "YAHOO.widget.SimpleEditor.html#method_pre_filter_linebreaks", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "ptags", "url": "YAHOO.widget.SimpleEditor.html#config_ptags", "type": "config"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_putUndo", "url": "YAHOO.widget.Editor.html#method__putUndo", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_removeEditorEvents", "url": "YAHOO.widget.SimpleEditor.html#method__removeEditorEvents", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "removeLineBreaks", "url": "YAHOO.widget.SimpleEditor.html#config_removeLineBreaks", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "removeLineBreaksChange", "url": "YAHOO.widget.SimpleEditor.html#event_removeLineBreaksChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_render", "url": "YAHOO.widget.SimpleEditor.html#method__render", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "render", "url": "YAHOO.widget.SimpleEditor.html#method_render", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_renderCreateLinkWindow", "url": "YAHOO.widget.Editor.html#method__renderCreateLinkWindow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_rendered", "url": "YAHOO.widget.SimpleEditor.html#property__rendered", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_renderInsertImageWindow", "url": "YAHOO.widget.Editor.html#method__renderInsertImageWindow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_renderPanel", "url": "YAHOO.widget.Editor.html#method__renderPanel", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "resetAllButtons", "url": "YAHOO.widget.Toolbar.html#method_resetAllButtons", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Toolbar", "name": "_resetColorPicker", "url": "YAHOO.widget.Toolbar.html#method__resetColorPicker", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "resize", "url": "YAHOO.widget.SimpleEditor.html#property_resize", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "resize", "url": "YAHOO.widget.SimpleEditor.html#config_resize", "type": "config"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_resizeConfig", "url": "YAHOO.widget.SimpleEditor.html#property__resizeConfig", "type": "property"}, {"access": "", "host": "YAHOO.widget.EditorInfo", "name": "saveAll", "url": "YAHOO.widget.EditorInfo.html#method_saveAll", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "saveEl", "url": "YAHOO.widget.SimpleEditor.html#config_saveEl", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "saveHTML", "url": "YAHOO.widget.SimpleEditor.html#method_saveHTML", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "selectButton", "url": "YAHOO.widget.Toolbar.html#method_selectButton", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_selection", "url": "YAHOO.widget.SimpleEditor.html#property__selection", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_selectNode", "url": "YAHOO.widget.SimpleEditor.html#method__selectNode", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_semantic", "url": "YAHOO.widget.SimpleEditor.html#property__semantic", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_sep", "url": "YAHOO.widget.Toolbar.html#property__sep", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_sepCount", "url": "YAHOO.widget.Toolbar.html#property__sepCount", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "SEP_DOMPATH", "url": "YAHOO.widget.SimpleEditor.html#property_SEP_DOMPATH", "type": "property"}, {"access": "", "host": "YAHOO.widget.EditorWindow", "name": "setBody", "url": "YAHOO.widget.EditorWindow.html#method_setBody", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setCurrentEvent", "url": "YAHOO.widget.SimpleEditor.html#method__setCurrentEvent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setDesignMode", "url": "YAHOO.widget.SimpleEditor.html#method__setDesignMode", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "setDesignMode", "url": "YAHOO.widget.SimpleEditor.html#config_setDesignMode", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "setEditorHTML", "url": "YAHOO.widget.SimpleEditor.html#method_setEditorHTML", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "_setEditorStyle", "url": "YAHOO.widget.SimpleEditor.html#method__setEditorStyle", "type": "method"}, {"access": "", "host": "YAHOO.widget.EditorWindow", "name": "setFooter", "url": "YAHOO.widget.EditorWindow.html#method_setFooter", "type": "method"}, {"access": "", "host": "YAHOO.widget.EditorWindow", "name": "setHeader", "url": "YAHOO.widget.EditorWindow.html#method_setHeader", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setInitialContent", "url": "YAHOO.widget.SimpleEditor.html#method__setInitialContent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setMarkupType", "url": "YAHOO.widget.SimpleEditor.html#method__setMarkupType", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setupAfterElement", "url": "YAHOO.widget.SimpleEditor.html#method__setupAfterElement", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setupDD", "url": "YAHOO.widget.SimpleEditor.html#method__setupDD", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_setupResize", "url": "YAHOO.widget.SimpleEditor.html#method__setupResize", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "show", "url": "YAHOO.widget.SimpleEditor.html#method_show", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_showingHiddenElements", "url": "YAHOO.widget.SimpleEditor.html#property__showingHiddenElements", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "STOP_EXEC_COMMAND", "url": "YAHOO.widget.SimpleEditor.html#property_STOP_EXEC_COMMAND", "type": "property"}, {"access": "protected", "host": "YAHOO.widget.SimpleEditor", "name": "STOP_NODE_CHANGE", "url": "YAHOO.widget.SimpleEditor.html#property_STOP_NODE_CHANGE", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_storeUndo", "url": "YAHOO.widget.Editor.html#method__storeUndo", "type": "method"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_BEFORE_EDITOR", "url": "YAHOO.widget.Editor.html#property_STR_BEFORE_EDITOR", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_BEFORE_EDITOR", "url": "YAHOO.widget.SimpleEditor.html#property_STR_BEFORE_EDITOR", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_CLOSE_WINDOW", "url": "YAHOO.widget.Editor.html#property_STR_CLOSE_WINDOW", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_CLOSE_WINDOW_NOTE", "url": "YAHOO.widget.Editor.html#property_STR_CLOSE_WINDOW_NOTE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "STR_COLLAPSE", "url": "YAHOO.widget.Toolbar.html#property_STR_COLLAPSE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "STR_EXPAND", "url": "YAHOO.widget.Toolbar.html#property_STR_EXPAND", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_BORDER", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_BORDER", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_BORDER_SIZE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_BORDER_SIZE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_BORDER_TYPE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_BORDER_TYPE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_COPY", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_COPY", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_IMAGE_HERE", "url": "YAHOO.widget.SimpleEditor.html#property_STR_IMAGE_HERE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_ORIG_SIZE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_ORIG_SIZE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_PADDING", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_PADDING", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_PROP_TITLE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_PROP_TITLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_SIZE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_SIZE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_TEXTFLOW", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_TEXTFLOW", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_IMAGE_TITLE", "url": "YAHOO.widget.Editor.html#property_STR_IMAGE_TITLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_IMAGE_URL", "url": "YAHOO.widget.SimpleEditor.html#property_STR_IMAGE_URL", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_LEAVE_EDITOR", "url": "YAHOO.widget.SimpleEditor.html#property_STR_LEAVE_EDITOR", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_LINK_NEW_WINDOW", "url": "YAHOO.widget.Editor.html#property_STR_LINK_NEW_WINDOW", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_LINK_PROP_REMOVE", "url": "YAHOO.widget.Editor.html#property_STR_LINK_PROP_REMOVE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_LINK_PROP_TITLE", "url": "YAHOO.widget.Editor.html#property_STR_LINK_PROP_TITLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_LINK_TITLE", "url": "YAHOO.widget.Editor.html#property_STR_LINK_TITLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_LINK_URL", "url": "YAHOO.widget.SimpleEditor.html#property_STR_LINK_URL", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_LOCAL_FILE_WARNING", "url": "YAHOO.widget.Editor.html#property_STR_LOCAL_FILE_WARNING", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "STR_NONE", "url": "YAHOO.widget.Editor.html#property_STR_NONE", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "STR_SPIN_DOWN", "url": "YAHOO.widget.Toolbar.html#property_STR_SPIN_DOWN", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "STR_SPIN_LABEL", "url": "YAHOO.widget.Toolbar.html#property_STR_SPIN_LABEL", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "STR_SPIN_UP", "url": "YAHOO.widget.Toolbar.html#property_STR_SPIN_UP", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "STR_TITLE", "url": "YAHOO.widget.SimpleEditor.html#property_STR_TITLE", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_swapEl", "url": "YAHOO.widget.SimpleEditor.html#method__swapEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_tag2cmd", "url": "YAHOO.widget.SimpleEditor.html#property__tag2cmd", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "_textarea", "url": "YAHOO.widget.SimpleEditor.html#property__textarea", "type": "property"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "textarea", "url": "YAHOO.widget.SimpleEditor.html#config_textarea", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "title", "url": "YAHOO.widget.ToolbarButton.html#config_title", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "_titlebar", "url": "YAHOO.widget.Toolbar.html#property__titlebar", "type": "property"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "titlebar", "url": "YAHOO.widget.Toolbar.html#config_titlebar", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "titlebarChange", "url": "YAHOO.widget.Toolbar.html#event_titlebarChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "titleChange", "url": "YAHOO.widget.ToolbarButton.html#event_titleChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_toggleDesignMode", "url": "YAHOO.widget.SimpleEditor.html#method__toggleDesignMode", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toolbar", "url": "YAHOO.widget.SimpleEditor.html#property_toolbar", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toolbar", "url": "YAHOO.widget.SimpleEditor.html#config_toolbar", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toolbarChange", "url": "YAHOO.widget.SimpleEditor.html#event_toolbarChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "toolbarCollapsed", "url": "YAHOO.widget.Toolbar.html#event_toolbarCollapsed", "type": "event"}, {"access": "protected", "host": "YAHOO.widget.Toolbar", "name": "_toolbarConfigs", "url": "YAHOO.widget.Toolbar.html#property__toolbarConfigs", "type": "property"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toolbar_cont", "url": "YAHOO.widget.SimpleEditor.html#config_toolbar_cont", "type": "config"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "toolbarExpanded", "url": "YAHOO.widget.Toolbar.html#event_toolbarExpanded", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toolbarLoaded", "url": "YAHOO.widget.SimpleEditor.html#event_toolbarLoaded", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "toString", "url": "YAHOO.widget.Editor.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.EditorWindow", "name": "toString", "url": "YAHOO.widget.EditorWindow.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "toString", "url": "YAHOO.widget.SimpleEditor.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.EditorInfo", "name": "toString", "url": "YAHOO.widget.EditorInfo.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "toString", "url": "YAHOO.widget.ToolbarButton.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "toString", "url": "YAHOO.widget.Toolbar.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "type", "url": "YAHOO.widget.ToolbarButton.html#config_type", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "typeChange", "url": "YAHOO.widget.ToolbarButton.html#event_typeChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_undoCache", "url": "YAHOO.widget.Editor.html#property__undoCache", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_undoLevel", "url": "YAHOO.widget.Editor.html#property__undoLevel", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_undoNodeChange", "url": "YAHOO.widget.Editor.html#method__undoNodeChange", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_updateMenuChecked", "url": "YAHOO.widget.SimpleEditor.html#method__updateMenuChecked", "type": "method"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "value", "url": "YAHOO.widget.ToolbarButton.html#config_value", "type": "config"}, {"access": "", "host": "YAHOO.widget.ToolbarButton", "name": "valueChange", "url": "YAHOO.widget.ToolbarButton.html#event_valueChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Toolbar", "name": "valueClick", "url": "YAHOO.widget.Toolbar.html#event_valueClick", "type": "event"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "width", "url": "YAHOO.widget.SimpleEditor.html#config_width", "type": "config"}, {"access": "", "host": "YAHOO.widget.SimpleEditor", "name": "widthChange", "url": "YAHOO.widget.SimpleEditor.html#event_widthChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.EditorInfo", "name": "window", "url": "YAHOO.widget.EditorInfo.html#property_window", "type": "property"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "windowCMDClose", "url": "YAHOO.widget.Editor.html#event_windowCMDClose", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "windowCMDOpen", "url": "YAHOO.widget.Editor.html#event_windowCMDOpen", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "windowCreateLinkRender", "url": "YAHOO.widget.Editor.html#event_windowCreateLinkRender", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "windowInsertImageRender", "url": "YAHOO.widget.Editor.html#event_windowInsertImageRender", "type": "event"}, {"access": "", "host": "YAHOO.widget.Editor", "name": "windowRender", "url": "YAHOO.widget.Editor.html#event_windowRender", "type": "event"}, {"access": "private", "host": "YAHOO.widget.Editor", "name": "_windows", "url": "YAHOO.widget.Editor.html#method__windows", "type": "method"}, {"access": "private", "host": "YAHOO.widget.SimpleEditor", "name": "_writeDomPath", "url": "YAHOO.widget.SimpleEditor.html#method__writeDomPath", "type": "method"}];
</script>
</body>
</html>
